Hey Guys,
I wanted to create a small object-builder, but i just dunno why i can't see the created object.
It outputs "object" but i don't see one.
Hope you can help me.
local opened
function open()
opened = not opened
if opened == true then
addEventHandler("onClientRender", root, GetCursor)
showCursor(true)
else
showCursor(false)
removeEventHandler("onClientRender", root, GetCursor)
end
end
bindKey("m","down",open)
local worldx,worldy,worldz
function GetCursor()
if isCursorShowing() then
posx, posy, worldx, worldy, worldz = getCursorPosition()
local obj = createObject(17950,worldx, worldy, worldz+5)
if obj then
outputChatBox("object")
end
end
end