Skip to content

Commit 79fc84c

Browse files
authored
refactor(config): minor clean up.
1 parent 92530d0 commit 79fc84c

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

config.lua

+37-36
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Config.LockToggleAnimation = {
88
PropBone = 57005,
99
WaitTime = 500,
1010
}
11+
1112
Config.LockAnimSound = "keys"
1213
Config.LockToggleSound = "lock"
1314
Config.LockToggleDist = 8.0
@@ -49,58 +50,58 @@ Config.PoliceNightAlertChance = 0.50 -- Chance of alerting police at night (time
4950

5051
-- Job Settings
5152
Config.SharedKeys = { -- Share keys amongst employees. Employees can lock/unlock any job-listed vehicle
52-
['police'] = { -- Job name
53+
police = { -- Job name
5354
requireOnduty = false,
5455
vehicles = {
55-
'police', -- Vehicle model
56-
'police2', -- Vehicle model
57-
}
56+
'police', -- Vehicle model
57+
'police2', -- Vehicle model
58+
}
5859
},
5960

60-
['mechanic'] = {
61+
mechanic = {
6162
requireOnduty = false,
6263
vehicles = {
6364
'towtruck',
64-
}
65+
}
6566
}
6667
}
6768

6869
-- These vehicles cannot be jacked
6970
Config.ImmuneVehicles = {
70-
'stockade'
71+
'stockade',
7172
}
7273

7374
-- These vehicles will never lock
7475
Config.NoLockVehicles = {}
7576

7677
-- These weapons cannot be used for carjacking
7778
Config.NoCarjackWeapons = {
78-
"WEAPON_UNARMED",
79-
"WEAPON_Knife",
80-
"WEAPON_Nightstick",
81-
"WEAPON_HAMMER",
82-
"WEAPON_Bat",
83-
"WEAPON_Crowbar",
84-
"WEAPON_Golfclub",
85-
"WEAPON_Bottle",
86-
"WEAPON_Dagger",
87-
"WEAPON_Hatchet",
88-
"WEAPON_KnuckleDuster",
89-
"WEAPON_Machete",
90-
"WEAPON_Flashlight",
91-
"WEAPON_SwitchBlade",
92-
"WEAPON_Poolcue",
93-
"WEAPON_Wrench",
94-
"WEAPON_Battleaxe",
95-
"WEAPON_Grenade",
96-
"WEAPON_StickyBomb",
97-
"WEAPON_ProximityMine",
98-
"WEAPON_BZGas",
99-
"WEAPON_Molotov",
100-
"WEAPON_FireExtinguisher",
101-
"WEAPON_PetrolCan",
102-
"WEAPON_Flare",
103-
"WEAPON_Ball",
104-
"WEAPON_Snowball",
105-
"WEAPON_SmokeGrenade",
106-
}
79+
[`WEAPON_UNARMED`] = true,
80+
[`WEAPON_KNIFE`] = true,
81+
[`WEAPON_NIGHTSTICK`] = true,
82+
[`WEAPON_HAMMER`] = true,
83+
[`WEAPON_BAT`] = true,
84+
[`WEAPON_CROWBAR`] = true,
85+
[`WEAPON_GOLFCLUB`] = true,
86+
[`WEAPON_BOTTLE`] = true,
87+
[`WEAPON_DAGGER`] = true,
88+
[`WEAPON_HATCHET`] = true,
89+
[`WEAPON_KNUCKLE`] = true,
90+
[`WEAPON_MACHETE`] = true,
91+
[`WEAPON_FLASHLIGHT`] = true,
92+
[`WEAPON_SWITCHBLADE`] = true,
93+
[`WEAPON_POOLCUE`] = true,
94+
[`WEAPON_WRENCH`] = true,
95+
[`WEAPON_BATTLEAXE`] = true,
96+
[`WEAPON_GRENADE`] = true,
97+
[`WEAPON_STICKYBOMB`] = true,
98+
[`WEAPON_PROXMINE`] = true,
99+
[`WEAPON_BZGAS`] = true,
100+
[`WEAPON_MOLOTOV`] = true,
101+
[`WEAPON_FIREEXTINGUISHER`] = true,
102+
[`WEAPON_PETROLCAN`] = true,
103+
[`WEAPON_FLARE`] = true,
104+
[`WEAPON_BALL`] = true,
105+
[`WEAPON_SNOWBALL`] = true,
106+
[`WEAPON_SMOKEGRENADE`] = true,
107+
}

0 commit comments

Comments
 (0)