Skip to main content

Import Jobs

  • This method allows for any resource to insert job data into the shared file for the core. That means that you can make a resource, and on load, make those jobs available for use. This can be accomplished through one the ways shown below. Utilizing the function requires importing the core but using the export does not
Read over and learn the Shared structure before attempting to use these
You must add this code to the client-side file of your resource when using these if you need the core object!
You must add this code to the server-side file of your resource when using these if you need the core object!

RSGCore.Functions.AddJob

exports[‘rsg-core’]:AddJob

RSGCore.Functions.AddJobs

Import Gangs

  • This method allows for any resource to insert gang data into the shared file for the core. That means that you can make a resource, and on load, make those gangs available for use. This can be accomplished through one the ways shown below. Utilizing the function requires importing the core but using the export does not

RSGCore.Functions.AddGang

exports[‘rsg-core’]:AddGang

QBCore.Functions.AddGangs

exports[‘rsg-core’]:AddGangs

Import Items

  • This method allows for any resource to insert item data into the shared file for the core. That means that you can make a resource, and on load, make those items available for use. This can be accomplished through one the ways shown below. Utilizing the function requires importing the core but using the export does not

RSGCore.Functions.AddItem

exports[‘rsg-core’]:AddItem