-
Notifications
You must be signed in to change notification settings - Fork 3
/
client.lua
108 lines (82 loc) · 2.89 KB
/
client.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
--[[
This script was originally created by Jack D. for San Andreas Legacy Roleplay.
http://salrp.x10.mx/
Publicly released by Jack D.
-]]
-- PRISON ALARM
RegisterNetEvent("prisonalarm:startalarmCL")
AddEventHandler('prisonalarm:startalarmCL', function()
while not PrepareAlarm("PRISON_ALARMS") do
Citizen.Wait(0)
end
StartAlarm("PRISON_ALARMS", 1)
end)
RegisterNetEvent("prisonalarm:stopalarmCL")
AddEventHandler('prisonalarm:stopalarmCL', function()
StopAlarm("PRISON_ALARMS", -1)
end)
-------------------------------------------------------------------
-- Fort Zancudo ALARM
RegisterNetEvent("fortzalarm:startalarmCL")
AddEventHandler('fortzalarm:startalarmCL', function()
while not PrepareAlarm("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS") do
Citizen.Wait(0)
end
StartAlarm("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS", 1)
end)
RegisterNetEvent("fortzalarm:stopalarmCL")
AddEventHandler('fortzalarm:stopalarmCL', function()
StopAlarm("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS", -1)
end)
-------------------------------------------------------------------
-- Paleto Bay Fleeca ALARM
RegisterNetEvent("pbalarm:startalarmCL")
AddEventHandler('pbalarm:startalarmCL', function()
while not PrepareAlarm("PALETO_BAY_SCORE_ALARM") do
Citizen.Wait(0)
end
StartAlarm("PALETO_BAY_SCORE_ALARM", 1)
end)
RegisterNetEvent("pbalarm:stopalarmCL")
AddEventHandler('pbalarm:stopalarmCL', function()
StopAlarm("PALETO_BAY_SCORE_ALARM", -1)
end)
-------------------------------------------------------------------
-- Humaine Labs ALARM
RegisterNetEvent("hlalarm:startalarmCL")
AddEventHandler('hlalarm:startalarmCL', function()
while not PrepareAlarm("FIB_05_BIOTECH_LAB_ALARMS") do
Citizen.Wait(0)
end
StartAlarm("FIB_05_BIOTECH_LAB_ALARMS", 1)
end)
RegisterNetEvent("hlalarm:stopalarmCL")
AddEventHandler('hlalarm:stopalarmCL', function()
StopAlarm("FIB_05_BIOTECH_LAB_ALARMS", -1)
end)
-------------------------------------------------------------------
-- Union Depository ALARM
RegisterNetEvent("udalarm:startalarmCL")
AddEventHandler('udalarm:startalarmCL', function()
while not PrepareAlarm("BIG_SCORE_HEIST_VAULT_ALARMS") do
Citizen.Wait(0)
end
StartAlarm("BIG_SCORE_HEIST_VAULT_ALARMS", 1)
end)
RegisterNetEvent("udalarm:stopalarmCL")
AddEventHandler('udalarm:stopalarmCL', function()
StopAlarm("BIG_SCORE_HEIST_VAULT_ALARMS", -1)
end)
-------------------------------------------------------------------
-- Chicken Factory ALARM
RegisterNetEvent("chfalarm:startalarmCL")
AddEventHandler('chfalarm:startalarmCL', function()
while not PrepareAlarm("PALETO_BAY_SCORE_CHICKEN_FACTORY_ALARM") do
Citizen.Wait(0)
end
StartAlarm("PALETO_BAY_SCORE_CHICKEN_FACTORY_ALARM", 1)
end)
RegisterNetEvent("chfalarm:stopalarmCL")
AddEventHandler('chfalarm:stopalarmCL', function()
StopAlarm("PALETO_BAY_SCORE_CHICKEN_FACTORY_ALARM", -1)
end)