Skip to content

Commit

Permalink
Update util.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
tah5882 authored Feb 15, 2024
1 parent 0c4b303 commit 3908f5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ELS-FiveM/client/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -315,20 +315,21 @@ function setSirenState(veh, newstate)
if newstate == 1 then

m_soundID_veh[veh] = GetSoundId()
PlaySoundFromEntity(m_soundID_veh[veh], getVehicleVCFInfo(veh).sounds.srnTone1.audioString, veh, "DLC_WMSIRENS_SOUNDSET", 0, 0)
PlaySoundFromEntity(m_soundID_veh[veh], getVehicleVCFInfo(veh).sounds.srnTone1.audioString, veh, getVehicleVCFInfo(veh).sounds.srnTone1.SoundSet, 0, 0)
toggleSirenMute(veh, true)

elseif newstate == 2 then

m_soundID_veh[veh] = GetSoundId()
PlaySoundFromEntity(m_soundID_veh[veh], getVehicleVCFInfo(veh).sounds.srnTone2.audioString, veh, "DLC_WMSIRENS_SOUNDSET", 0, 0)
PlaySoundFromEntity(m_soundID_veh[veh], getVehicleVCFInfo(veh).sounds.srnTone2.audioString, veh, getVehicleVCFInfo(veh).sounds.srnTone2.SoundSet, 0, 0)
toggleSirenMute(veh, true)

elseif newstate == 3 then

m_soundID_veh[veh] = GetSoundId()
PlaySoundFromEntity(m_soundID_veh[veh], getVehicleVCFInfo(veh).sounds.srnTone3.audioString, veh, "DLC_WMSIRENS_SOUNDSET", 0, 0)
PlaySoundFromEntity(m_soundID_veh[veh], getVehicleVCFInfo(veh).sounds.srnTone3.audioString, veh, getVehicleVCFInfo(veh).sounds.srnTone3.SoundSet, 0, 0)
toggleSirenMute(veh, true)

else
toggleSirenMute(veh, true)
end
Expand Down

0 comments on commit 3908f5b

Please sign in to comment.