Jump to content

MrFredo

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by MrFredo

  1. Yes it is that I did, I use GetTickCount, I need to assign a different action by a simple click or double click on the button
  2. Hello, The event onClientGUIDoubleClick does not work on a button This script works: addEventHandler("onClientResourceStart", _localPlayer, function () local window = guiCreateWindow(0.4,0.4,0.1,0.1,"test",true) addEventHandler("onClientGUIDoubleClick",window,doubleClickTest,false) showCursor(true) end ) function doubleClickTest(button,state) outputDebugString(tostring(button).."|"..tostring(state)) end This script not works: addEventHandler("onClientResourceStart", _localPlayer, function () local button = guiCreateButton(0.4,0.4,0.1,0.1,"test",true) addEventHandler("onClientGUIDoubleClick",button,doubleClickTest,false) showCursor(true) end ) function doubleClickTest(button,state) outputDebugString(tostring(button).."|"..tostring(state)) end Is this normal?
  3. Hello, setElementParent not works if parent is player! my script (server): addEventHandler("onPlayerJoin",getRootElement(), function() local item = createElement("item") print(tostring(setElementParent(item,source))) -- print false! end ) Is this normal?
×
×
  • Create New...