Server exports and events

Although we've tried to integrate the resource with other popular resources and three popular frameworks (QB-Core, vRP, ESX), we know server events and exports are a crucial part of resources, enabling you to integrate this yourself with other resources or even your own CAD system for example.

All server events and exports are clearly defined in the sv_exports.lua file.

To use an export, here's an example of how you would start a new fire from another resource:

exports['SmartFires']:CreateFire(vector3(0.0, 0.0, 0.0), 3.0, "normal")

This would create a normal fire with a size of 3.0 at the specified coordinates.

sv_utils.lua file

Although some files of our resource are obfuscated to prevent authorised use, we have added some important functions into the sv_utils.lua file which isn't obfuscated. If you are experienced in editing lua, you may find some code in this file useful in creating integrations with other systems and resources.

Our Support Team are here to help to an extent when adding custom integrations. If you require assistance, contact us through Discord or send us an email.

Last updated