Exports
A series of exports within Wasabi GPS System (wasabi_gps) that will be expanded as needed for use in 3rd party integrations.
Server Exports
registerJob
exports.wasabi_gps:registerJob(options)
Returns true if successful or nil/false if unsuccessful
options (table):
job(string): Job name to registertracked(bool, optional): Whether this job should be tracked (default is true)subscribers(array, optional): Jobs that can see this job's blips (example:{'ambulance', 'police'})blipSettings(table, optional): Blip appearance settingscolor(number): Blip color IDscale(float): Blip scale (0.0-1.0)short(bool): Whether blip is short rangecategory(number): Blip category ID
item(string, optional): Item name for GPS toggle
Example:
local registered = exports.wasabi_gps:registerJob({
job = 'police',
subscribers = {'police', 'sheriff'},
blipSettings = {
color = 3,
scale = 0.75,
short = false,
category = 7
}
})
if registered then
print('Job \'police\' being tracked and shown to jobs \'police\' and \'sheriff\'')
else
print('Job did not register successfully')
end
unregisterJob
exports.wasabi_gps:unregisterJob(job)
Unregisters a job from the GPS blip system if added
job (string): The job name to unregister
Example:
exports.wasabi_gps:unregisterJob('ambulance')