Agent69 Posted July 3, 2019 Share Posted July 3, 2019 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 ? Link to comment
Dimos7 Posted July 4, 2019 Share Posted July 4, 2019 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? Link to comment
WASSIm. Posted July 4, 2019 Share Posted July 4, 2019 You can use onClientKey and cancelEvent Link to comment
Agent69 Posted July 4, 2019 Author Share Posted July 4, 2019 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 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