Jump to content

Disable radio.


#DaMiAnO

Recommended Posts

Posted

You want to disable it for yourself or for everyone ?

If for everyone, then use

showPlayerHudComponent( source, "radio", false ) 

Posted

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.

Posted
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

Posted
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.

Posted
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 :)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...