Jump to content

Set San Andreas Radio Volume


Rob0

Recommended Posts

Posted

As I recall the San Andreas radio stations can play in MTA. Is there a way to set the the client's In car radio off, and turn their San Andreas game radio volume to 0?

Posted
maybe you can use this
setSoundVolume 

or maybe pausing it when the resource starts

setSoundPaused 

He can't use this because there is no way to get the radio channel as an element.

Use setRadioChannel(0) to turn off the radio.

Posted

Try this:

function radio() 
    setRadioChannel(0) 
    cancelEvent() 
end 
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),radio) 
addEventHandler("onClientPlayerRadioSwitch",getRootElement(),radio) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...