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.
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
-- principal: string or false
-- command: string
@@ -1,5 +1,3 @@
# Cache
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.
@@ -1,5 +1,3 @@
# Callbacks
Triggers a registered server callback and registers an event handler for the response.
### lib.callback
@@ -1,5 +1,3 @@
# Callbacks
### lib.callback.register
```lua
-- name: string
@@ -1,5 +1,3 @@
# Disable Controls
### lib.disableControls
```lua
-- Call on frame to disable all stored keys.
@@ -1,5 +1,5 @@
---
title: Misc
title: Clipboard
---
### 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.
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.
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.
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.
https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5
@@ -1,5 +1,3 @@
# Version check
### lib.versionCheck
Compares the resource version to the latest published release on GitHub.
```lua
@@ -1,5 +1,3 @@
# Dependency version
### lib.checkDependency
Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.
```lua
@@ -1,5 +1,3 @@
# Zones
An alternative to PolyZone utilising [glm.polygon](https://github.com/gottfriedleibniz/lua/blob/luaglm/EXTENDED.md#polygon).
```lua