forked from Arius-Scripts/ars_ambulancejob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
289 lines (262 loc) · 11.3 KB
/
config.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
lib.locale()
Config = {}
Config.Debug = false
Config.ClothingScript = 'illenium-appearance' -- 'illenium-appearance', 'fivem-appearance' ,'core' or false -- to disable
Config.EmsJobs = { "ambulance", "ems" }
Config.RespawnTime = 0 -- in minutes
Config.UseInterDistressSystem = true
Config.WaitTimeForNewCall = 5 -- minutes
Config.ReviveCommand = "revive"
Config.ReviveAreaCommand = "revivearea"
Config.HealCommand = "heal"
Config.HealAreaCommand = "healarea"
Config.ReviveAllCommand = "reviveall"
Config.AdminGroup = "group.admin"
Config.MedicBagProp = "xm_prop_x17_bag_med_01a"
Config.MedicBagItem = "medicalbag"
Config.HelpCommand = "911"
Config.RemoveItemsOnRespawn = true
Config.BaseInjuryReward = 150 -- changes if the injury value is higher then 1
Config.ReviveReward = 700
Config.ParamedicTreatmentPrice = 4000
Config.AllowAlways = true -- false if you want it to work only when there are only medics online
Config.AmbulanceStretchers = 2 -- how many stretchers should an ambunalce have
Config.ConsumeItemPerUse = 10 -- every time you use an item it gets used by 10%
Config.TimeToWaitForCommand = 2 -- when player dies he needs to wait 2 minutes to do the ambulance command
Config.NpcReviveCommand = "ambulance" -- this will work only when there are no medics online
Config.UsePedToDepositVehicle = false -- if false the vehicle will instantly despawns
Config.ExtraEffects = true -- false >> disables the screen shake and the black and white screen
Config.EmsVehicles = { -- vehicles that have access to the props (cones and ecc..)
'ambulance',
'ambulance2',
}
Config.DeathAnimations = {
["car"] = {
dict = "veh@low@front_ps@idle_duck",
clip = "sit"
},
["normal"] = {
dict = "dead",
clip = "dead_a"
},
["revive"] = {
dict = "get_up@directional@movement@from_knees@action",
clip = "getup_r_0"
}
}
Config.Hospitals = {
["pillbox"] = {
paramedic = {
model = "s_m_m_scientist_01",
pos = vector4(312.0927, -596.1016, 42.2918, 338.7213),
},
bossmenu = {
pos = vector3(284.84, -615.6, 44.24),
min_grade = 2
},
zone = {
pos = vec3(299.0, -585.28, 43.28),
size = vec3(200.0, 200.0, 200.0),
},
blip = {
enable = true,
name = 'Pillbox Hospital',
type = 61,
scale = 1.0,
color = 2,
pos = vector3(308.96, -591.52, 43.28),
},
respawn = {
{
bedPoint = vector4(349.76, -583.44, 43.0, 150.04),
spawnPoint = vector4(348.84, -583.36, 42.32, 68.24)
},
-- {
-- bedPoint = vector4(346.96, -590.64, 44.12, 338.0),
-- spawnPoint = vector4(348.84, -583.36, 42.32, 68.24)
-- },
},
stash = {
['ems_stash_1'] = {
slots = 50,
weight = 50, -- kg
min_grade = 0,
label = 'Ems stash',
shared = true, -- false if you want to make everyone has a personal stash
pos = vector3(309.96, -599.2, 43.28)
}
},
pharmacy = {
["ems_shop_1"] = {
job = true,
label = "Pharmacy",
grade = 0, -- works only if job true
pos = vector3(315.5516, -598.6013, 43.2918),
blip = {
enable = false,
name = 'Pharmacy',
type = 61,
scale = 0.7,
color = 2,
pos = vector3(315.5516, -598.6013, 43.2918),
},
items = {
{ name = 'medicalbag', price = 10 },
{ name = 'bandage', price = 10 },
{ name = 'defibrillator', price = 10 },
{ name = 'tweezers', price = 10 },
{ name = 'burncream', price = 10 },
{ name = 'suturekit', price = 10 },
{ name = 'icepack', price = 10 },
}
},
["ems_shop_2"] = {
job = false,
label = "Pharmacy",
grade = 0, -- works only if job true
pos = vector3(303.84, -597.6, 43.28),
blip = {
enable = true,
name = 'Pharmacy',
type = 61,
scale = 0.7,
color = 2,
pos = vector3(303.84, -597.6, 43.28),
},
items = {
{ name = 'bandage', price = 10 },
}
},
},
garage = {
['ems_garage_1'] = {
pedPos = vector4(291.2237, -614.9087, 42.4234, 332.9413),
model = 'mp_m_weapexp_01',
spawn = vector4(294.28, -608.32, 43.32, 69.6),
deposit = vector3(294.28, -608.32, 43.32),
driverSpawnCoords = vector3(297.56, -600.52, 43.32),
vehicles = {
{
label = 'Ambulance',
spawn_code = 'ambulance',
min_grade = 3,
modifications = {} -- es. {color1 = {255, 12, 25}}
},
}
}
},
clothes = {
enable = true,
pos = vector4(300.7454, -597.4542, 42.2918, 298.0781),
model = 'a_f_m_bevhills_01',
male = {
[1] = {
['mask_1'] = 0,
['mask_2'] = 0,
['arms'] = 0,
['tshirt_1'] = 15,
['tshirt_2'] = 0,
['torso_1'] = 86,
['torso_2'] = 0,
['bproof_1'] = 0,
['bproof_2'] = 0,
['decals_1'] = 0,
['decals_2'] = 0,
['chain_1'] = 0,
['chain_2'] = 0,
['pants_1'] = 10,
['pants_2'] = 2,
['shoes_1'] = 56,
['shoes_2'] = 0,
['helmet_1'] = 34,
['helmet_2'] = 0,
['glasses_1'] = 34,
['glasses_2'] = 1,
},
[2] = {
['mask_1'] = 0,
['mask_2'] = 0,
['arms'] = 0,
['tshirt_1'] = 15,
['tshirt_2'] = 0,
['torso_1'] = 86,
['torso_2'] = 0,
['bproof_1'] = 0,
['bproof_2'] = 0,
['decals_1'] = 0,
['decals_2'] = 0,
['chain_1'] = 0,
['chain_2'] = 0,
['pants_1'] = 10,
['pants_2'] = 2,
['shoes_1'] = 56,
['shoes_2'] = 0,
['helmet_1'] = 34,
['helmet_2'] = 0,
['glasses_1'] = 34,
['glasses_2'] = 1,
},
},
female = {
[1] = {
['mask_1'] = 0,
['mask_2'] = 0,
['arms'] = 0,
['tshirt_1'] = 15,
['tshirt_2'] = 0,
['torso_1'] = 86,
['torso_2'] = 0,
['bproof_1'] = 0,
['bproof_2'] = 0,
['decals_1'] = 0,
['decals_2'] = 0,
['chain_1'] = 0,
['chain_2'] = 0,
['pants_1'] = 10,
['pants_2'] = 2,
['shoes_1'] = 56,
['shoes_2'] = 0,
['helmet_1'] = 34,
['helmet_2'] = 0,
['glasses_1'] = 34,
['glasses_2'] = 1,
},
},
},
},
}
Config.BodyParts = {
-- ["0"] = { id = "hip", label = "Damaged Hipbone", levels = { ["default"] = "Damaged", ["10"] = "Damaged x2", ["20"] = "Damaged x3", ["30"] = "Damaged x3", ["40"] = "Damaged x3", ["50"] = "Damaged x3" } },
["0"] = { id = "hip", label = "Damaged Hipbone", levels = { ["default"] = "Damaged", ["10"] = "Damaged x2", ["20"] = "Damaged x3", ["30"] = "Damaged x3", ["40"] = "Damaged x3" } }, -- hip bone,
["10706"] = { id = "rclavicle", label = "Right Clavicle", levels = { ["default"] = "Damaged" } }, --right clavicle
["64729"] = { id = "lclavicle", label = "Left Clavicle", levels = { ["default"] = "Damaged" } }, --right clavicle
["14201"] = { id = "lfoot", label = "Left Foot", levels = { ["default"] = "Damaged" } }, -- left foot
["18905"] = { id = "lhand", label = "Left Hand", levels = { ["default"] = "Damaged" } }, -- left hand
["24816"] = { id = "lbdy", label = "Lower chest", levels = { ["default"] = "Damaged" } }, -- lower chest
["24817"] = { id = "ubdy", label = "Upper Chest", levels = { ["default"] = "Damaged" } }, -- Upper chest
["24818"] = { id = "shoulder", label = "Shoulder", levels = { ["default"] = "Damaged" } }, -- shoulder
["28252"] = { id = "rforearm", label = "Right Forearm", levels = { ["default"] = "Damaged" } }, -- right forearm
["36864"] = { id = "rleg", label = "Right leg", levels = { ["default"] = "Damaged" } }, -- right lef
["39317"] = { id = "neck", label = "Neck", levels = { ["default"] = "Damaged" } }, -- neck
["40269"] = { id = "ruparm", label = "Right Upper Arm", levels = { ["default"] = "Damaged" } }, -- right upper arm
["45509"] = { id = "luparm", label = "Left Upper Arm", levels = { ["default"] = "Damaged" } }, -- left upper arm
["51826"] = { id = "rthigh", label = "Right Thigh", levels = { ["default"] = "Damaged" } }, -- right thigh
["52301"] = { id = "rfoot", label = "Right Foot", levels = { ["default"] = "Damaged" } }, -- right foot
["57005"] = { id = "rhand", label = "Right Hand", levels = { ["default"] = "Damaged" } }, -- right hand
["57597"] = { id = "5lumbar", label = "5th Lumbar vertabra", levels = { ["default"] = "Damaged" } }, --waist
["58271"] = { id = "lthigh", label = "Left Thigh", levels = { ["default"] = "Damaged" } }, -- left thigh
["61163"] = { id = "lforearm", label = "Left forearm", levels = { ["default"] = "Damaged" } }, -- left forearm
["63931"] = { id = "lleg", label = "Left Leg", levels = { ["default"] = "Damaged" } }, -- left leg
["31086"] = { id = "head", label = "Head", levels = { ["default"] = "Damaged" } }, -- head
}
function Config.SendDistressCall(msg)
--[--] -- Quasar
-- TriggerServerEvent('qs-smartphone:server:sendJobAlert', {message = msg, location = GetEntityCoords(PlayerPedId())}, "ambulance")
--[--] -- GKS
-- local myPos = GetEntityCoords(PlayerPedId())
-- local GPS = 'GPS: ' .. myPos.x .. ', ' .. myPos.y
-- ESX.TriggerServerCallback('gksphone:namenumber', function(Races)
-- local name = Races[2].firstname .. ' ' .. Races[2].lastname
-- TriggerServerEvent('gksphone:jbmessage', name, Races[1].phone_number, msg, '', GPS, "ambulance")
-- end)
end