TrapLord Studios™ Posted January 5, 2015 Share Posted January 5, 2015 I'm using the following code. It only works when I restart the resource. If I restart it then reconnect it doesn't work. addEventHandler( "onClientResourceStart", getRootElement( getThisResource() ), function () toggleControl ( "radar", false ) end ) Thanks in advanced for the help! Link to comment
Castillo Posted January 5, 2015 Share Posted January 5, 2015 Have you tried adding a output? like: outputChatBox ( "HIDING RADAR" ) to know if the function is being executed or not. P.S: Use 'resourceRoot' for addEventHandler, else it's going to execute that function everytime a resource starts, ANY resource. Link to comment
TrapLord Studios™ Posted January 5, 2015 Author Share Posted January 5, 2015 It outputs HIDING RADAR when I reconnect, but F11 still appears. Link to comment
Castillo Posted January 5, 2015 Share Posted January 5, 2015 I guess the control is being enabled by something else, try adding a timer of some seconds to disable it. Link to comment
TrapLord Studios™ Posted January 5, 2015 Author Share Posted January 5, 2015 Thanks I resolved the issue. 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