[Request] [help] no flying cinematic music.(source code in here)

Hey i dont see this anywhere and it has been requested by many so anyone would like to make a script out of this?
https://www.gta5-mods.com/scripts/no-flying-music
The owner have posted the source code in the comments so pretty much gave authorization to use it
I am no developer but ill help in what i can

very simple. just over 10 lines of code:

public class ScriptMain : Script
{
public ScriptMain()
{
Function.Call(Hash.SET_AUDIO_FLAG, “DisableFlightMusic”, true);
}

protected override void Dispose(bool A_0)
{
Function.Call(Hash.SET_AUDIO_FLAG, “DisableFlightMusic”, false);

base.Dispose(A_0);
}
}
Would this be enough info to convert it to lua or c#? Appreciate

1 Like

if it helps

This code here, just configure yours (fxmanifest.lua) or yours
(__resource.lua) and put the code below in yours (client.lua).

— Disable cinematographic sound that plays when you are on an airplane

Citizen.CreateThread(function()
------while true do
-------------SetAudioFlag(‘DisableFlightMusic’, true)
-------------Citizen.Wait(0)
------end
end)

Note: Replace the (-) by an empty space, if you can’t, contact me.

3 Likes

thank you it worked. you’re the man.

1 Like

Could I kindly have the resource? :grin: