#Music in clothing shop

1 messages · Page 1 of 1 (latest)

polar igloo
#

Hello, do you know how to disable the default GTAV music that plays in clothing stores?

polar igloo
#

??

white hatch
#

This maybe work

local isQBCore = true -- Set this to false if you are using ESX instead of QBCore
local CoreObject, playerData

if isQBCore then
    CoreObject = exports['qb-core']:GetCoreObject()
    playerData = CoreObject.Functions.GetPlayerData()
else
    ESX = exports["es_extended"]:getSharedObject()
    playerData = ESX.GetPlayerData()
end

local musicStopped = false

AddEventHandler('playerSpawned', function()
    if not musicStopped then
        StartAudioScene("DLC_MPHEIST_TRANSITION_TO_APT_FADE_IN_RADIO_SCENE")
        musicStopped = true
    end
end)

AddEventHandler('baseevents:enteredVehicle', function(vehicle, seat, name, netId)
    SetUserRadioControlEnabled(false)
    if GetPlayerRadioStationName() ~= nil then
        SetVehRadioStation(vehicle, "OFF")
    end
end)

AddEventHandler('baseevents:leftVehicle', function(vehicle, seat, name, netId)
    StartAudioScene("DLC_MPHEIST_TRANSITION_TO_APT_FADE_IN_RADIO_SCENE")
end)