βοΈ Exports
Exports let your own scripts read and change properties. Call them with the resource name nolag_properties:
lua
- Client side exports run in your client scripts. Most of them work for the local player only.
- Server side exports run in your server scripts. Use them for anything that must be trusted, such as keys, ownership and money.
Some exports have the same name on both sides but take different parameters, for example AddKey and GetMapZoneAtCoords. Check the page for the side you are on.
Player calls and server calls
Some server exports take a player ID first, such as AddKey, RemoveKey, ToggleDoorlock and ToggleLockdown.
- Pass the player's server ID to act as that player. The same permission checks apply as in the menu.
- Pass the value from the export page to act as the server. No checks are done.
Identifiers
Exports that ask for a player identifier expect the framework identifier, such as the citizenid on QBCore and Qbox. Society properties use the job name as the owner.
Hooks
To allow or block actions such as buying, selling or entering, use the Hooks System instead of exports.