-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathconfig.lua
92 lines (68 loc) · 2.99 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
local Config = {}
Config.debug = false
Config.useOxInventory = GetResourceState('ox_inventory'):find('start')
Config.clothingScript = 'illenium-appearance' -- 'illenium-appearance', 'fivem-appearance', 'core' or false -- to disable
Config.emsJobs = { "ambulance", "ems" }
Config.respawnTime = 0 -- in minutes
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.tabletItem = "emstablet"
Config.helpCommand = "911"
Config.removeItemsOnRespawn = true
Config.keepItemsOnRespawn = { "money", "WEAPON_PISTOL" } -- items that will not be removed when respawed (works only when Config.RemoveItemsOnRespawn is true)
Config.baseInjuryReward = 150
Config.reviveReward = 700
Config.paramedicTreatmentPrice = 4000
Config.shouldRevive = false
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 ambulance 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 = true,
ambulance2 = true,
}
Config.animations = {
["death_car"] = {
dict = "veh@low@front_ps@idle_duck",
clip = "sit"
},
["death_normal"] = {
dict = "dead",
clip = "dead_a"
},
["get_up"] = {
dict = "get_up@directional@movement@from_knees@action",
clip = "getup_r_0"
}
}
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
function Config.giveVehicleKeys(vehicle, plate)
-- exaple usage
-- exports['youscript']:name(vehicle, plate)
end
function Config.removeVehicleKeys(vehicle, plate)
-- exaple usage
-- exports['youscript']:name(vehicle, plate)
end
return Config