Jump to content

What is this error?


12p

Recommended Posts

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?

Link to comment

try guiSetInputEnabled(true)

i mean guiSetInputEnabled(false)

looks like it has nothing to do with it, sorry :D

actually it should work fine right after showCursor(true), it's just open chatbox/console prevent onClientClick event somehow.

Link to comment

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.

Link to comment

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.
×
×
  • Create New...