someone to explain to me, i try different things and it doesn’t work.
-- Remove music
StartAudioScene('DLC_MPHEIST_TRANSITION_TO_APT_FADE_IN_RADIO_SCENE')
-- Back to normal
StopAudioScene('DLC_MPHEIST_TRANSITION_TO_APT_FADE_IN_RADIO_SCENE')
1 Like
Where you put that?
Here is an example how to use it:
-- Vanilla Unicorn position
local clubPos = vector(129.55, -1284.08, 29.27)
-- Is the music stopped ?
local isStopped = false
Citizen.CreateThread(function()
while true do
Citizen.Wait(500)
local playerPos = GetEntityCoords(PlayerPedId())
if #(clubPos - playerPos) <= 100.0 and not isStopped then
StartAudioScene('DLC_MPHEIST_TRANSITION_TO_APT_FADE_IN_RADIO_SCENE')
isStopped = true
elseif isStopped then
StopAudioScene('DLC_MPHEIST_TRANSITION_TO_APT_FADE_IN_RADIO_SCENE')
isStopped = false
end
end
end)
1 Like
I had to create a script where I put what the one above said, I just give you the link, put the folder wherever and you start the script in the .cfg
Thanks so much
1 Like