mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
8488dec3d3e678dfc10593c3da8d9b39bb423a7f
Per the Lua manual,
"if sec is -10, it means 10 seconds before the time specified by the other fields".
i.e. { min = 61, hour = 0 } is equal to { min = 1, hour = 1 }
Should improve scheduling and help with #368.
ox_lib
Cfx provides functionality for loading external files in a resource through fxmanifest.
lua54 'yes'
shared_script '@ox_lib/init.lua'
server.cfg
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
License
Lua Language Server
- Install Lua Language Server to ease development with annotations, type checking, diagnostics, and more.
- Install cfxlua-vscode to add natives and cfxlua runtime declarations to LLS.
- You can load ox_lib into your global development environment by modifying workspace/user settings "Lua.workspace.library" with the resource path.
- e.g. "c:\fxserver\resources\ox_lib"
Description
Languages
Lua
62.5%
TypeScript
35.6%
CSS
1.7%