#DaMiAnO Posted December 10, 2011 Posted December 10, 2011 Hi! I want disable default San Andreas radio. How to do, may be a function? Sorry for my English.
CapY Posted December 10, 2011 Posted December 10, 2011 You want to disable it for yourself or for everyone ? If for everyone, then use showPlayerHudComponent( source, "radio", false )
Jaysds1 Posted December 10, 2011 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) My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
#DaMiAnO Posted December 10, 2011 Author Posted December 10, 2011 For everyone, but i have that and it only hide radio station name, default radio is working. Sorry for my English.
Jaysds1 Posted December 10, 2011 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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
BinSlayer1 Posted December 10, 2011 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
#DaMiAnO Posted December 10, 2011 Author 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. Sorry for my English.
Jaysds1 Posted December 10, 2011 Posted December 10, 2011 just add addEventHandler("onClientVehicleStartEnter",getRootElement(),noRadio) My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
BinSlayer1 Posted December 10, 2011 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
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