forked from Simnation/Main
17 lines
614 B
Lua
17 lines
614 B
Lua
---Sends a dispatch alert about the slashing of tires
|
|
---@param source string
|
|
---@param coords vector3
|
|
---@param vehicle integer
|
|
function SendDispatchAlert(source, coords, vehicle)
|
|
-- NOTE: This has NOT been tested, may need to be fixed. Please let me know if this doesn't work!
|
|
exports.ox_mdt:createCall({
|
|
offense = GetLocalization('dispatch_label'),
|
|
code = '10-66',
|
|
blip = 432,
|
|
coords = { coords.x, coords.y },
|
|
isEmergency = true,
|
|
info = {
|
|
{ label = GetVehicleNumberPlateText(vehicle), icon = 'badge-tm' }
|
|
}
|
|
})
|
|
end
|