12p Posted November 29, 2010 Posted November 29, 2010 I just want to create an object when clicking with the cursor. But what the hell? It doesn't work. No errors... --Creates a block when clicking. addEventHandler ("onClientClick",getRootElement(), function (button,state,absoluteX,absoluteY,posX,posY,posZ,entity) --outputChatBox ("Click is working.") I TRIED THIS, DOESNT APPEARS! createObject (1575,posX,posY,posZ) end) What is wrong?
Aibo Posted November 29, 2010 Posted November 29, 2010 try guiSetInputEnabled(true) i mean guiSetInputEnabled(false) looks like it has nothing to do with it, sorry actually it should work fine right after showCursor(true), it's just open chatbox/console prevent onClientClick event somehow.
12p Posted November 30, 2010 Author Posted November 30, 2010 Yeah, maybe it's that. I used just T to toggle cursor
Castillo Posted November 30, 2010 Posted November 30, 2010 it works and good, remember is client side. addEventHandler ("onClientClick",getRootElement(), function (button,state,absoluteX,absoluteY,posX,posY,posZ,entity) outputChatBox ("Click is working.") createObject (1575,posX,posY,posZ) end) btw don't use the cursor when you press console button because it doesn't works that way, use other like admin panel one.
12p Posted November 30, 2010 Author Posted November 30, 2010 Using a bind, i have used showCursor and now works thx mates
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