Jo Libraries
A standalone libraries for providing reusable code to increase the compatibility between scrips.
Installation
- Download the last release of the library
- Add the resource
jo_libs
in your resources folder - Add
ensure jo_libs
in your server.cfg
Usage
- To use libraries, just add the initiator as a shared script inside of your
fxmanifest.lua
file.
lua
shared_scripts {
'@jo_libs/init.lua'
}
- List modules you want use inside the
fxmanifest.lua
(in lowercase)
lua
jo_libs {
'print',
'table',
}
You can now use the libraries inside of your resource with the jo
global variable.