We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 403d4bf + fb0b679 commit 7e710d0Copy full SHA for 7e710d0
resource/client/main.lua
@@ -38,7 +38,7 @@ local function HandleHorn(vehicle)
38
local mainHorn = kjxmlData[GetCarHash(vehicle)].sounds.mainHorn
39
40
-- the custom horn is disabled
41
- if not mainHorn.allowUse then return end
+ if not mainHorn or not mainHorn.allowUse then return end
42
43
-- disable default honk sound (INPUT_VEH_HORN)
44
DisableControlAction(0, 86, true)
0 commit comments