HRLib
FiveM library, used in all HRScripts resources, focused in providing common code in different scripts as functions to ensure better performance and optimization
Last updated
FiveM library, used in all HRScripts resources, focused in providing common code in different scripts as functions to ensure better performance and optimization
Last updated
Download
Configure its config.lua
file
Add ensure HRLib
to the top of the list with resources to start in your server.cfg
Restart your server
Here we allow you to see what you're about to configure before starting HRLib
Add this to your fxmanifest.lua:
The translation system allows you to translate your scripts, more organized and optimized.
Create your own translation.lua file directly into your script's folder
Add this to your fxmanifest.lua
file 'translation.lua'
Create your own config.lua file which should provide global variable Config
or
local one and should return it at the end of the file (as import module) but it's supposed to return the config table with a field language
if not in that way, the global Config
variable must have the language
field in it so the translation can work properly
Add this to your fxmanifest.lua
If you choose to do it with global variable, add this:
shared_script 'config.lua'
(add it after the row with adding the import method)
If you choose to do it with the local variable and return the config, add this:
files {
'translation.lua',
'config.lua'
}
Refresh & Restart the script
The translation is only available in import method!