Sign in to follow this  
Rob0

Set San Andreas Radio Volume

Recommended Posts

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?

Share this post


Link to post
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.

Share this post


Link to post

Try this:

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

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.