Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/10/24 in all areas

  1. Identify the Sound Groups Check the documentation or forums for the specific sound group IDs for hydra, shamal, and at400. Engine sounds typically fall under specific IDs https://wiki.multitheftauto.com/wiki/SetWorldSoundEnabled Using setWorldSoundEnabled -- Disable engine sounds for hydra, shamal, and at400 local aircraftSoundGroup = 19 -- Example sound group ID for engines setWorldSoundEnabled(aircraftSoundGroup, false) Test Different IDs If the above ID does not work, try other sound group IDs that may be associated with aircraft sounds. You may need to experiment with IDs until you find the correct one. Check Conflicting Scripts Make sure that no other scripts are interfering with the sound settings. Disable other sound-related scripts temporarily to isolate the issue.
    1 point
  2. but remember, if you want to make a sound false you have to add the id of that sound, currently all sounds are false with the loop
    1 point
  3. 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)
    1 point
  4. You may consider disabling engine sounds globally, but this will affect all vehicles. setWorldSoundEnabled(-1, false)
    1 point
×
×
  • Create New...