Sign in to follow this  
Snoozy

Totally disable radio channels ingame?

Recommended Posts

Is it possible to make players unable to change to any radio channel in their vehicles?

Share this post


Link to post

Try with this ( client side ):

addEventHandler("onClientPlayerRadioSwitch", getLocalPlayer(), 
function () 
cancelEvent() 
end) 

Share this post


Link to post

Yea okay that works tho it seems that it also blocks the setRadioChannel which is needed to be used at start to set their channel to 0 else it will be 1

Share this post


Link to post

both

"onClientVehicleEnter" if source is localplayer

and

"onClientPlayerRadioSwitch"

just set radio to id0.

although i'd advise to just set it to 0 when entering, so if someone wants it, he still can turn it on.

Share this post


Link to post

@SolidSnake, or simply;

addEventHandler("onClientPlayerRadioSwitch",getLocalPlayer(),cancelEvent) 

Share this post


Link to post

Indeed Callum, but it would be the same, just less code lines.

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.