Agent69

toggleControl not work !!

Recommended Posts

hello all ,  i make a jail admin script and when i put someone in jail he can open f1 to f12 , i tried toggleControl like this

toggleControl(toWho, "fire", false)
toggleControl(toWho, "chatbox", false)
toggleControl(toWho, "radar", false)
toggleControl(toWho, "aim", false)

the player can't move or talk but he can do any function in server like open command panel " F8 " and change his name  and can open any other panel . 

did i miss something ?

Share this post


Link to post

I that code you provide it not have something make the player not able to move maybe its something else did you try to debug your code? 

Share this post


Link to post
16 hours ago, Dimos7 said:

I that code you provide it not have something make the player not able to move maybe its something else did you try to debug your code? 

Debug didn't show nothing about it

3 minutes ago, WASSIm. said:

You can use onClientKey and cancelEvent

Ok i will try

Share this post


Link to post

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.