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

  1. Open the config.lua file in the resource folder.
  2. Find the Config.Framework variable.
  3. Set its value to Standalone.
  4. Open callbacks.lua and locate the sections marked with -- standalone. These are placeholders where you should insert your own framework’s functions and events.
  5. 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.
  6. Save the changes and restart the resource on your server.

For additional assistance, contact us on our Discord server.

On this page