Custom Framework
Learn how to add and configure custom frameworks.
If you are using a custom framework or wish to add a framework that's not officially supported, follow these steps to integrate it with the resource.
Adding a Custom Framework
- Open the
config.lua
file in the resource folder. - Find the
Config.Framework
variable. - Set its value to
Standalone
. - Open
callbacks.lua
and locate the sections marked with-- standalone
. These are placeholders where you should insert your own framework’s functions and events. - Modify the following functions in
config.lua
to align with your framework:Config.VehicleCheck
– Ensure it correctly verifies vehicle ownership.Config.JobCheck
– Adjust it to check the player’s job.Config.Notification
– Configure it to send notifications properly.Config.GetVehicleProps
– Make it retrieve vehicle properties as needed.Config.SetVehicleProps
– Adjust it to update vehicle properties accordingly.
- Save the changes and restart the resource on your server.
For additional assistance, contact us on our Discord server.