Cfx provides functionality for loading external files in a resource through fxmanifest.
lua54 'yes'
shared_script '@ox_lib/init.lua'
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
- 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"