restructure ox_lib docs

This commit is contained in:
Linden committed 2022-05-12 18:07:54 +10:00
1 parent 8081132d6f
commit a8be760943
20 files changed
+1 -26

No files matched your search

@@ -1,5 +1,3 @@
# Permissions
Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions. Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.
Refer to [Basic Aces & Principals overview/guide](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917) for more information. Refer to [Basic Aces & Principals overview/guide](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917) for more information.
@@ -1,5 +1,3 @@
# Command
```lua ```lua
-- principal: string or false -- principal: string or false
-- command: string -- command: string
@@ -1,5 +1,3 @@
# Cache
Caches data related to the player and handling some events or statebags. Caches data related to the player and handling some events or statebags.
An interval runs every 100ms to update data that cannot be checked via handlers. An interval runs every 100ms to update data that cannot be checked via handlers.
@@ -1,5 +1,3 @@
# Callbacks
Triggers a registered server callback and registers an event handler for the response. Triggers a registered server callback and registers an event handler for the response.
### lib.callback ### lib.callback
@@ -1,5 +1,3 @@
# Callbacks
### lib.callback.register ### lib.callback.register
```lua ```lua
-- name: string -- name: string
@@ -1,5 +1,3 @@
# Disable Controls
### lib.disableControls ### lib.disableControls
```lua ```lua
-- Call on frame to disable all stored keys. -- Call on frame to disable all stored keys.
@@ -1,5 +1,5 @@
--- ---
title: Misc title: Clipboard
--- ---
### lib.setClipboard ### lib.setClipboard
File renamed without changes.
@@ -1,5 +1,3 @@
# Localisation
Allows players to set a preferred language and attempt to load locale files in any resources using the module. Allows players to set a preferred language and attempt to load locale files in any resources using the module.
Locale files should use the [ISO Language Code](http://www.lingoes.net/en/translator/langcode.htm) and be saved as `./locales/langcode.json` Locale files should use the [ISO Language Code](http://www.lingoes.net/en/translator/langcode.htm) and be saved as `./locales/langcode.json`
@@ -1,5 +1,3 @@
# Logger
Submit logs to Datadog. Submit logs to Datadog.
Register an account with [datadog](https://www.datadoghq.com/). Once registered you need to create an [API key](https://app.datadoghq.com/organization-settings/api-keys). Register an account with [datadog](https://www.datadoghq.com/). Once registered you need to create an [API key](https://app.datadoghq.com/organization-settings/api-keys).
File renamed without changes.
@@ -1,5 +1,3 @@
# Streaming
Check if assets exist, such as models, and loads them into memory. Check if assets exist, such as models, and loads them into memory.
Throws errors for invalid assets and returns true if the asset is loaded. Throws errors for invalid assets and returns true if the asset is loaded.
@@ -1,4 +1,3 @@
# Vehicle Properties
Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props. Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.
https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5 https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5
@@ -1,5 +1,3 @@
# Version check
### lib.versionCheck ### lib.versionCheck
Compares the resource version to the latest published release on GitHub. Compares the resource version to the latest published release on GitHub.
```lua ```lua
@@ -1,5 +1,3 @@
# Dependency version
### lib.checkDependency ### lib.checkDependency
Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors. Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.
```lua ```lua
@@ -1,5 +1,3 @@
# Zones
An alternative to PolyZone utilising [glm.polygon](https://github.com/gottfriedleibniz/lua/blob/luaglm/EXTENDED.md#polygon). An alternative to PolyZone utilising [glm.polygon](https://github.com/gottfriedleibniz/lua/blob/luaglm/EXTENDED.md#polygon).
```lua ```lua