compat cd_dispatchm tk_dispatch
This commit is contained in:
1 parent
ee8d811bf5
commit
ff21e76119
6 files changed
+50
-27
No files matched your search
@@ -23,29 +23,4 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert)
|
||||
local blip = Bridge.Utility.CreateBlip(alert.coords, alert.blipData.sprite, alert.blipData.color, alert.blipData.scale, alert.code, true)
|
||||
Wait(alert.time)
|
||||
Bridge.Utility.RemoveBlip(blip)
|
||||
end)
|
||||
|
||||
--[[
|
||||
RegisterCommand('testalert', function(source, args)
|
||||
print('sending alert')
|
||||
local ped = cache.ped
|
||||
local vehicle = cache.vehicle
|
||||
Dispatch.SendAlert({
|
||||
vehicle = vehicle or nil,
|
||||
plate = vehicle and GetVehicleNumberPlateText(vehicle) or nil,
|
||||
ped = ped,
|
||||
pedCoords = ped and GetEntityCoords(ped),
|
||||
coords = GetEntityCoords(ped),
|
||||
blipData = {
|
||||
sprite = 161,
|
||||
color = 1,
|
||||
scale = 0.8,
|
||||
},
|
||||
message = "Vehicle is being stolen",
|
||||
code = '10-80',
|
||||
icon = 'fas fa-question',
|
||||
jobs = {'police'},
|
||||
alertTime = 10
|
||||
})
|
||||
end, false)
|
||||
--]]
|
||||
end)
|
||||
Reference in new issue
Block a user