mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
restructure ox_lib docs
This commit is contained in:
1 parent
8081132d6f
commit
a8be760943
21 files changed
+5
-30
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
|
||||
@@ -10,4 +10,4 @@ Sets the player's clipboard to the specified string value.
|
||||
-- value: string
|
||||
|
||||
lib.setClipboard(value)
|
||||
```
|
||||
```
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
|
||||
|
||||
@@ -36,4 +34,4 @@ lib.requestStreamedTextureDict(dict, timeout)
|
||||
-- fxName: string
|
||||
-- timeout: number [default: 100]
|
||||
lib.requestNamedPtfxAsset(fxName, timeout)
|
||||
```
|
||||
```
|
||||
@@ -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
|
||||
@@ -9,4 +7,4 @@ lib.versionCheck(repository)
|
||||
lib.versionCheck('overextended/ox_lib')
|
||||
```
|
||||
|
||||
[Utilises GitHub's release API](https://docs.github.com/en/rest/reference/releases)
|
||||
[Utilises GitHub's release API](https://docs.github.com/en/rest/reference/releases)
|
||||
@@ -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
|
||||
@@ -24,4 +24,4 @@ shared_script '@ox_lib/init.lua'
|
||||
|
||||
That's it!
|
||||
You can now use the library functions inside of your resource, check the rest of the
|
||||
documentation to see how to utilise them.
|
||||
documentation to see how to utilise them.
|
||||
Reference in new issue
Block a user