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?