Hi!
I have some problem that i can not get the audio to work when the script calls that when im inside the casino
function playSomeBackgroundAudioBaby()
CreateThread(function()
local function audioBanks()
while not RequestScriptAudioBank("DLC_VINEWOOD/CASINO_GENERAL", false, -1) do
Wait(0)
end
while not RequestScriptAudioBank("DLC_VINEWOOD/CASINO_SLOT_MACHINES_01", false, -1) do
Wait(0)
end
while not RequestScriptAudioBank("DLC_VINEWOOD/CASINO_SLOT_MACHINES_02", false, -1) do
Wait(0)
end
while not RequestScriptAudioBank("DLC_VINEWOOD/CASINO_SLOT_MACHINES_03", false, -1) do
Wait(0)
end
end
audioBanks()
while inCasino do
if not IsStreamPlaying() and LoadStream("casino_walla", "DLC_VW_Casino_Interior_Sounds") then
PlayStreamFromPosition(945.85, 41.58, 75.82)
PlaySound(-1, "Event_Start_Text", "GTAO_FM_Events_Soundset", 0, 0, 1)
end
if IsStreamPlaying() and not IsAudioSceneActive("DLC_VW_Casino_General") then
StartAudioScene("DLC_VW_Casino_General")
end
Wait(1000)
end
if IsStreamPlaying() then
StopStream()
end
if IsAudioSceneActive("DLC_VW_Casino_General") then
StopAudioScene("DLC_VW_Casino_General")
end
end)
end
and this is the message from when its calling
and when i do a command to trigger the audio on me insted i get the same
fxmanifest looks like this
fx_version 'cerulean'
game 'gta5'
shared_scripts {
'config.lua',
}
client_scripts{
'@PolyZone/client.lua',
'@PolyZone/CircleZone.lua',
'client/*.lua'
}
server_scripts{
'server/*.lua'
}
data_file 'AUDIO_GAMEDATA' 'audio/dlcvinewood_game.dat'
data_file 'AUDIO_SOUNDDATA' 'audio/dlcvinewood_sounds.dat'
data_file 'AUDIO_DYNAMIXDATA' 'audio/dlcvinewood_mix.dat'
data_file 'AUDIO_SYNTHDATA' 'audio/dlcVinewood_amp.dat'
data_file 'AUDIO_SPEECHDATA' 'audio/dlcvinewood_speech.dat'
data_file 'AUDIO_WAVEPACK' 'audio/sfx/dlc_vinewood'
files{
'audio/dlcvinewood_amp.dat10',
'audio/dlcvinewood_amp.dat10.nametable',
'audio/dlcvinewood_amp.dat10.rel',
'audio/dlcvinewood_game.dat151',
'audio/dlcvinewood_game.dat151.nametable',
'audio/dlcvinewood_game.dat151.rel',
'audio/dlcvinewood_mix.dat15',
'audio/dlcvinewood_mix.dat15.nametable',
'audio/dlcvinewood_mix.dat15.rel',
'audio/dlcvinewood_sounds.dat54',
'audio/dlcvinewood_sounds.dat54.nametable',
'audio/dlcvinewood_sounds.dat54.rel',
'audio/dlcvinewood_speech.dat4',
'audio/dlcvinewood_speech.dat4.nametable',
'audio/dlcvinewood_speech.dat4.rel',
'audio/sfx/dlc_vinewood/casino_general.awc',
'audio/sfx/dlc_vinewood/casino_interior_stems.awc',
'audio/sfx/dlc_vinewood/casino_slot_machines_01.awc',
'audio/sfx/dlc_vinewood/casino_slot_machines_02.awc',
'audio/sfx/dlc_vinewood/casino_slot_machines_03.awc',
'audio/sfx/dlc_vinewood/*.awc'
}