Files
Elite-Gaming-FiveM/resources/[EGRP-Map-Addons]/int_prisonfull/client.lua
T
2021-12-03 01:35:12 +00:00

27 lines
850 B
Lua

RegisterCommand("alarm_on", function(source, args, rawCommand)
local alarmIpl = GetInteriorAtCoordsWithType(1787.004,2593.1984,45.7978,"int_prison_main")
RefreshInterior(alarmIpl)
EnableInteriorProp(alarmIpl, "prison_alarm")
Citizen.CreateThread(function()
while not PrepareAlarm("PRISON_ALARMS") do
Citizen.Wait(100)
end
StartAlarm("PRISON_ALARMS", true)
end)
end, false)
RegisterCommand("alarm_off", function(source, args, rawCommand)
local alarmIpl = GetInteriorAtCoordsWithType(1787.004,2593.1984,45.7978,"int_prison_main")
RefreshInterior(alarmIpl)
DisableInteriorProp(alarmIpl, "prison_alarm")
Citizen.CreateThread(function()
while not PrepareAlarm("PRISON_ALARMS") do
Citizen.Wait(100)
end
StopAllAlarms(true)
end)
end, false)