🖥️Server Exports
GetJobCategory
-- job_name must be the job you are trying to categorize
exports['p6_bridge']:GetJobCategory(job_name)if exports['p6_bridge']:GetJobCategory(business_name) == 'mechanic' then
-- Execute the code allowed to mechanics
else
-- Display a notification with an error, player is not a mechanic
endSendDiscord
-- type: Type of log (alerts, chat, command) you can add new ones in custom/server/logs.lua
-- title: Title of the message
-- message: Message text
-- metadata: Additional metadata of the alert (vehicle model, color, plate, speed, weapon, ammo type, name of the subject, unit)
-- source: source identifier who trigger the log
TriggerEvent('p6_bridge:sendDiscord', type, title, message, source)CheckIfProtectedItem
GetProtectedItems
GetPolicesInDuty
GetMedicsInDuty
GetMechanicsInDuty
GetTaxisInDuty
GetBusinessJobCategory
GetBusinessList
Last updated