-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathconfig.lua
More file actions
84 lines (71 loc) · 2.53 KB
/
Copy pathconfig.lua
File metadata and controls
84 lines (71 loc) · 2.53 KB
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
return {
---@class audioConfig
---@field audioName string
---@field audioRef? string the audioBank to use, if for example you use custom serverside sirens
---@class SirenConfigTable
---@field models? table<string, boolean>
---@field sirenModes table<number, audioConfig> the key is the siren mode
---@field horn? audioConfig
controls = {
policeLights = 'Q',
policeHorn = 'E',
sirenToggle = 'LMENU',
sirenCycle = 'R',
},
sirenShutOff = true, -- Set to true if you want the siren to automatically shut off when the player exits the vehicle
disableDamagedSirens = false, -- Set to true if you want to disable the damaged siren
useEngineHealth = false, -- Determine wether to use engine health over body health for siren damage
damageThreshold = 300, -- If the vehicle's health is below this value, the siren will be considered damaged
---@type table<number, SirenConfigTable>
--- Configure what siren sounds to use for a specific model and siren mode
sirens = {
--base
{
sirenModes = {
{ audioName = 'VEHICLES_HORNS_SIREN_1' },
{ audioName = 'VEHICLES_HORNS_SIREN_2' },
{ audioName = 'VEHICLES_HORNS_POLICE_WARNING' },
},
horn = {
audioName = 'SIRENS_AIRHORN'
}
},
--fire
{
sirenModes = {
{ audioName = 'RESIDENT_VEHICLES_SIREN_FIRETRUCK_QUICK_01' },
{ audioName = 'RESIDENT_VEHICLES_SIREN_FIRETRUCK_WAIL_01' },
{ audioName = 'VEHICLES_HORNS_AMBULANCE_WARNING' }
},
horn = {
audioName = 'VEHICLES_HORNS_FIRETRUCK_WARNING'
},
models = {
[`FIRETRUK`] = true,
[`ambulance`] = true,
}
},
--unmarked
{
sirenModes = {
{ audioName = 'RESIDENT_VEHICLES_SIREN_WAIL_02' },
{ audioName = 'RESIDENT_VEHICLES_SIREN_QUICK_02' }
},
models = {
[`fbi`] = true,
[`fbi2`] = true,
[`police4`] = true,
}
},
--bikes
{
sirenModes = {
{ audioName = 'RESIDENT_VEHICLES_SIREN_WAIL_03' },
{ audioName = 'RESIDENT_VEHICLES_SIREN_QUICK_03' }
},
models = {
[`policeb`] = true
}
},
}
}