From 55c32d91f4ec34ec4aebc627e4b76650b63bc46a Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Fri, 4 Mar 2022 11:15:47 +1100 Subject: [PATCH] Update README.md --- README.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e14040b07..1023c8f9d 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,17 @@ +

Documentation

+
+ ## Lua Library for FiveM FXServer provides its own system for including files, which we use to load this resource in the fxmanifest via ```lua shared_script '@ox_lib/init.lua' ``` - -

Documentation

- - -Once loaded, any resource can call exports or load modules with the `lib` keyword, i.e. -```lua -lib.callbacks.Register(...) +### server.cfg +``` +add_ace resource.ox_lib command.add_principal allow +add_ace resource.ox_lib command.remove_principal allow ``` - -Modules are loaded into the environment of the invoking resource, unlike exports which are called via function reference. If you don't want to use this resource, but want to reuse code you are permitted to do so under the [license terms](https://www.gnu.org/licenses/gpl-3.0.html).