This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
forked from Spazd/qb-pursuitmode
-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.lua
194 lines (182 loc) · 6.6 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
Config = {}
Config.DefaultKey = 'N'
Config.SlowdownOnSwitch = true
Config.SlowdownPercentage = 0.2 -- 0.2 => 20%
Config.PlaySoundOnSwitch = true
Config.PlayServerSyncedSound = true -- server synced sounds can be heard by other players, disable if you cannot hear the sounds at higher speeds or mess with the distance settings below
Config.MaxSoundDistance = 3.0 -- Server Synced only, and no volume falloff
Config.MaxSoundDistanceAtMediumSpeeds = 5.0 -- Do not touch if you don't know what you're doing!
Config.MaxSoundDistanceAtHighSpeeds = 10.0 -- Do not touch if you don't know what you're doing!
Config.SoundFile = 'beep-sound-1' -- file name without the .ogg (located in /resources/[standalone]/interact-sound/client/html/sounds/)
Config.SoundVolume = 0.05
Config.SwitchNotification = "Changed mode to %s" -- %s will be replaced with the vehicle mode, e.g. S+
Config.AuthorizedJobs = { -- empty => everyone can use it
"police",
"ambulance",
}
Config.VehicleModes = { -- If you define a new mode, you will have to add a new Vehicle Modification and a new mode for EVERY vehicle defined in Config.VehiclesConfig!
"A",
"A+",
"S",
"S+"
}
Config.VehicleModifications = {
["A"] = {
["Turbo"] = false,
["XenonHeadlights"] = false,
["Engine"] = -1,
["Brakes"] = -1,
["Transmission"] = -1,
["XenonHeadlightsColor"] = 0,
},
["A+"] = {
["Turbo"] = false,
["XenonHeadlights"] = false,
["Engine"] = 2,
["Brakes"] = 1,
["Transmission"] = 2,
["XenonHeadlightsColor"] = 0,
},
["S"] = {
["Turbo"] = true,
["XenonHeadlights"] = false,
["Engine"] = 3,
["Brakes"] = 1,
["Transmission"] = 2,
["XenonHeadlightsColor"] = 0,
},
["S+"] = {
["Turbo"] = true,
["XenonHeadlights"] = true,
["Engine"] = 4,
["Brakes"] = 2,
["Transmission"] = 3,
["XenonHeadlightsColor"] = 1,
}
}
-- To add more cars just copy an existing one and adjust the values correspondingly (don't forget to change the model name aswell, e.g. police3)
-- You can remove or add any value that is a float, integer or vector3 (for available values check handling.meta) but make sure to do so for every mode / class of that vehicle, otherwise the value won't be reset
Config.VehiclesConfig = {
["police3"] = {
["A"] = {
["fDriveInertia"] = 1.000000,
["fBrakeForce"] = 1.700000,
["fInitialDriveMaxFlatVel"] = 130.000000,
["fSteeringLock"] = 44.300000,
["fInitialDriveForce"] = 0.270000
},
["A+"] = {
["fDriveInertia"] = 1.100000,
["fBrakeForce"] = 2.000000,
["fInitialDriveMaxFlatVel"] = 150.000000,
["fSteeringLock"] = 45.200000,
["fInitialDriveForce"] = 0.32
},
["S"] = {
["fDriveInertia"] = 1.2,
["fBrakeForce"] = 3.5,
["fInitialDriveMaxFlatVel"] = 170.0,
["fSteeringLock"] = 43.3,
["fInitialDriveForce"] = 0.37
},
["S+"] = {
["fDriveInertia"] = 1.3,
["fBrakeForce"] = 4.5,
["fInitialDriveMaxFlatVel"] = 190.0,
["fSteeringLock"] = 40.3,
["fInitialDriveForce"] = 0.45
}
},
["pd3"] = {
["A"] = {
["fDriveInertia"] = 1.000000,
["fBrakeForce"] = 1.700000,
["fInitialDriveMaxFlatVel"] = 130.000000,
["fSteeringLock"] = 43.300000,
["fInitialDriveForce"] = 0.270000
},
["A+"] = {
["fDriveInertia"] = 1.100000,
["fBrakeForce"] = 2.000000,
["fInitialDriveMaxFlatVel"] = 150.000000,
["fSteeringLock"] = 44.200000,
["fInitialDriveForce"] = 0.32
},
["S"] = {
["fDriveInertia"] = 1.2,
["fBrakeForce"] = 3.5,
["fInitialDriveMaxFlatVel"] = 170.0,
["fSteeringLock"] = 45.3,
["fInitialDriveForce"] = 0.37
},
["S+"] = {
["fDriveInertia"] = 1.3,
["fBrakeForce"] = 4.5,
["fInitialDriveMaxFlatVel"] = 190.0,
["fSteeringLock"] = 46.3,
["fInitialDriveForce"] = 0.45
}
},
["lspd18char"] = {
["A"] = {
["fDriveInertia"] = 1.000000,
["fBrakeForce"] = 1.700000,
["fInitialDriveMaxFlatVel"] = 130.000000,
["fSteeringLock"] = 50.0,
["fInitialDriveForce"] = 0.270000
},
["A+"] = {
["fDriveInertia"] = 1.100000,
["fBrakeForce"] = 2.000000,
["fInitialDriveMaxFlatVel"] = 150.000000,
["fSteeringLock"] =50.0,
["fInitialDriveForce"] = 0.32
},
["S"] = {
["fDriveInertia"] = 1.2,
["fBrakeForce"] = 3.5,
["fInitialDriveMaxFlatVel"] = 170.0,
["fSteeringLock"] = 50.0,
["fInitialDriveForce"] = 0.37
},
["S+"] = {
["fDriveInertia"] = 1.3,
["fBrakeForce"] = 4.5,
["fInitialDriveMaxFlatVel"] = 190.0,
["fSteeringLock"] =55.0,
["fInitialDriveForce"] = 0.45
}
},
}
Config.UseGeneralVehicleConfig = true -- change this if you want every EMERGENCY vehicle to be able to change modes (still restricted by Configs.AuthorizedJobs)
Config.EmergencyVehiclesOnly = true -- change this if you want EVERY vehicle to be able to change modes (still restricted by Configs.AuthorizedJobs)
Config.GeneralVehicleConfig = {
["A"] = {
["fDriveInertia"] = 1.000000,
["fBrakeForce"] = 1.700000,
["fInitialDriveMaxFlatVel"] = 130.000000,
["fSteeringLock"] = 44.300000,
["fInitialDriveForce"] = 0.270000
},
["A+"] = {
["fDriveInertia"] = 1.100000,
["fBrakeForce"] = 2.000000,
["fInitialDriveMaxFlatVel"] = 150.000000,
["fSteeringLock"] = 45.200000,
["fInitialDriveForce"] = 0.32
},
["S"] = {
["fDriveInertia"] = 1.2,
["fBrakeForce"] = 3.5,
["fInitialDriveMaxFlatVel"] = 170.0,
["fSteeringLock"] = 43.3,
["fInitialDriveForce"] = 0.37
},
["S+"] = {
["fDriveInertia"] = 1.3,
["fBrakeForce"] = 4.5,
["fInitialDriveMaxFlatVel"] = 490.0,
["fSteeringLock"] = 40.3,
["fInitialDriveForce"] = 0.85
}
}