mirror of
https://github.com/ChronosX88/mta-ptp.git
synced 2024-11-21 18:02:25 +00:00
Disable gunfire ambient sound
This commit is contained in:
parent
3fcd023107
commit
d931c733ab
@ -135,6 +135,7 @@ local function selectTeamAndSpawn(team, skin)
|
||||
end
|
||||
|
||||
addEventHandler("onClientResourceStart", resourceRoot, function()
|
||||
setAmbientSoundEnabled("gunfire", false)
|
||||
skinSelectionMenu = SkinSelectionMenu()
|
||||
skinSelectionMenu:showSkinSelectionButtons()
|
||||
skinSelectionMenu._showLabels = function()
|
||||
@ -168,4 +169,4 @@ addEventHandler("onPlayerTeamSelectedSuccessful", root, function()
|
||||
unbindKey("space", "down", _selectTeamAndSpawn)
|
||||
removeEventHandler("onClientRender", root, skinSelectionMenu._showLabels)
|
||||
skinSelectionMenu:hideSkinSelectionButtons()
|
||||
end)
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user