esporta05 Posted July 23, 2014 Share Posted July 23, 2014 Hello all, I know that I am posting too many help topics. I am sorry about that but I am really new on LUA and I am trying to learn new things with scripting new scripts all the time for improving myself. I am sorry about posting too many help topic. I have got another problem too. I was trying to do a simple cursor enable, disable script but I am getting this debug script error all the time: http://i.imgur.com/DDeibZO.png function MouseOn(source, thePlayer, commandName) local thePlayer = ( source ) showCursor ( thePlayer, true ) end addCommandHandler("mouseon",MouseOn) function MouseOff(source) local thePlayer = ( source ) showCursor ( thePlayer, false ) end addCommandHandler("mouseoff",MouseOff) Link to comment
Castillo Posted July 23, 2014 Share Posted July 23, 2014 If the code is client side, then you must remove thePlayer from showCursor. 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