README
nss_gta_libs is a collection of helpers for FIVM scripts. This library is designed for
ease of use
high performance
reusability (Instead of writing duplicate code each script!)
It offers a wide range of so-called LUA modules and UI components.
The current state of the library is alpha. This means that the library is not yet feature complete and there may be bugs. Use the library on our own risk.
Visit our Discord / Homepage / Store / Docs!
Support
Visit Discord to open a ticket.
Changelog
See CHANGELOG.md for more information.
Setup script for customers
Ensure that the
nss_gta_libsfolder is in yourresourcesfolder.Copy [config.demo.lua] to
config.luaand fill in the values.If you use a not supported framework like QB-Core then you may need to create your own adapter. See Custom adapter for more information.
Ignore
internal_cfg.luaand other config files innss_gta_libsbecause they are only for developers, see Additional setup script for developers for more information.Add
ensure nss_gta_libsto yourserver.cfg. Note: Place it on top of all resources that usesnss_gta_libsbut after any framework like qb-core.Restart your server.
Additional setup script for developers
If you are a developer and create scripts using nss_gta_libs then you can optionally do the following:
Rename [config.demo.lua] to
config.luaand fill in the values (currently there are no values).Modules can have their own config files, check the modules for
config.luaorconfig.demo.luafiles. Note: This is not necessary for all modules and depends on your use cases (e.g. as developer to enable debug modes).
TODOs
Countless ;)
Die Exports sollen zu einem Export zusammengefasst werden, die dann weitere Apis bereitstellen, dann kann sich jede Resource auch gleich registrieren und muss das nicht mehr einzeln machen.
Für die Config in der libs sollte auch der Config-Checker eingebaut werden.
Dev hints
Last updated
Was this helpful?