#DaMiAnO Posted December 10, 2011 Share Posted December 10, 2011 Hi! I want disable default San Andreas radio. How to do, may be a function? Link to comment
CapY Posted December 10, 2011 Share Posted December 10, 2011 You want to disable it for yourself or for everyone ? If for everyone, then use showPlayerHudComponent( source, "radio", false ) Link to comment
Jaysds1 Posted December 10, 2011 Share Posted December 10, 2011 I think he actually means the radio, not the text for the radio, (even if he means the actual radio, he's gonna have to disable the text to) Link to comment
#DaMiAnO Posted December 10, 2011 Author Share Posted December 10, 2011 For everyone, but i have that and it only hide radio station name, default radio is working. Link to comment
Jaysds1 Posted December 10, 2011 Share Posted December 10, 2011 knew it... I don't think you could do it, I know it's possible but it might need some advance scripting... Maybe you could just set the radio off then. Link to comment
BinSlayer1 Posted December 10, 2011 Share Posted December 10, 2011 function noRadio() setRadioChannel(0) addEventHandler('onClientPlayerRadioSwitch', getRootElement(), function() cancelEvent() end ) end You have to call the noRadio function like noRadio() or a timer or whatever Link to comment
#DaMiAnO Posted December 10, 2011 Author Share Posted December 10, 2011 function noRadio() setRadioChannel(0) addEventHandler('onClientPlayerRadioSwitch', getRootElement(), function() cancelEvent() end ) end You have to call the noRadio function like noRadio() or a timer or whatever Thank you. Close topic. Link to comment
Jaysds1 Posted December 10, 2011 Share Posted December 10, 2011 just add addEventHandler("onClientVehicleStartEnter",getRootElement(),noRadio) Link to comment
BinSlayer1 Posted December 10, 2011 Share Posted December 10, 2011 just add addEventHandler("onClientVehicleStartEnter",getRootElement(),noRadio) that won't work. it'll just return some debug error like "event already added" or something like that @#DaMiAnO: No problem 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