Snoozy Posted June 1, 2011 Share Posted June 1, 2011 Is it possible to make players unable to change to any radio channel in their vehicles? Link to comment
Castillo Posted June 1, 2011 Share Posted June 1, 2011 Try with this ( client side ): addEventHandler("onClientPlayerRadioSwitch", getLocalPlayer(), function () cancelEvent() end) Link to comment
Snoozy Posted June 1, 2011 Author Share Posted June 1, 2011 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 Link to comment
karlis Posted June 2, 2011 Share Posted June 2, 2011 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. Link to comment
Callum Posted June 2, 2011 Share Posted June 2, 2011 @SolidSnake, or simply; addEventHandler("onClientPlayerRadioSwitch",getLocalPlayer(),cancelEvent) Link to comment
Castillo Posted June 3, 2011 Share Posted June 3, 2011 Indeed Callum, but it would be the same, just less code lines. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now