update(vehicle): lockpick event & alarm

This commit is contained in:
Andyyy7666 committed 2023-08-27 01:22:27 +02:00
1 parent e4e5d60cf4
commit bde1f5b0bb
2 files changed
+7 -7

No files matched your search

+1 -4
View File
@@ -243,15 +243,12 @@ RegisterNetEvent("ND_Vehicles:blip", function(netid, status)
EndTextCommandSetBlipName(blip)
end)
RegisterNetEvent("ND_Vehicles:syncAlarm", function(netid, success, action)
RegisterNetEvent("ND_Vehicles:syncAlarm", function(netid)
local veh = NetToVeh(netid)
if not veh then return end
SetVehicleAlarmTimeLeft(veh, 1)
SetVehicleAlarm(veh, true)
StartVehicleAlarm(veh)
if success and action == "lockpick" then
setVehicleLocked(veh, false)
end
end)
RegisterNetEvent("ND_VehicleSystem:setOwnedIfNot", function(netid)