Files
ox_lib/README.md

32 lines
1.1 KiB
Markdown
Raw Normal View History

2022-03-04 11:15:47 +11:00
<div align='center'><h1><a href='https://overextended.github.io/docs/'>Documentation</a></h3></div>
<br>
2023-05-18 18:44:23 +10:00
## ox_lib
2023-05-18 18:44:23 +10:00
Cfx provides functionality for loading external files in a resource through fxmanifest.
2021-11-16 11:15:59 +11:00
```lua
2023-05-18 18:44:23 +10:00
lua54 'yes'
2022-02-28 14:17:25 +11:00
shared_script '@ox_lib/init.lua'
2021-11-16 11:15:59 +11:00
```
2022-03-04 11:15:47 +11:00
### server.cfg
2022-03-04 11:15:47 +11:00
```
2022-08-15 20:48:37 +10:00
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
2022-03-04 11:15:47 +11:00
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
2021-11-16 11:15:59 +11:00
```
2022-01-10 01:00:45 +11:00
## License
2023-05-18 18:44:23 +10:00
<a href='https://www.gnu.org/licenses/lgpl-3.0.en.html'>LGPL-3.0-or-later</a>
2023-05-18 18:44:23 +10:00
## Lua Language Server
- Install [Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) to ease development with annotations, type checking, diagnostics, and more.
- Install [cfxlua-vscode](https://marketplace.visualstudio.com/items?itemName=overextended.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"