hello, I will send you a server and client side code for a solution to your problem, check it and continue with these codes, I have not tested it, it will work but
server :
addEvent("disableJetSound", true)
addEventHandler("disableJetSound", root, function()
triggerClientEvent(source, "disableJetSound", resourceRoot)
end)
client :
function disableHydraSound()
for i = 10000, 15000 do
setWorldSoundEnabled(i, false)
outputChatBox("Sound ID: " .. i .. " disabled.")
end
end
addEvent("disableJetSound", true)
addEventHandler("disableJetSound", root, disableHydraSound)
function checkHydraSound()
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle and getElementModel(vehicle) == 520 then -- Hydra
triggerServerEvent("disableJetSound", resourceRoot)
end
end
addEventHandler("onClientVehicleEnter", root, checkHydraSound)