Hi, i am sure this problem will be easy to solve, but i cannot do it by my self:
Im trying to make a simple panel, the simplest panel you will see ever... this panel got open when a player hit a marker, the panel have three buttons, and the problem it's no one works when got clicked, i dont know if it's a handler error (onClientGUIclick) or what the hell it's happenin here, the panel its triggered by another source (by serverside source, for markerHit) and works, the problem it's just the buttons... i tried and tried but nothing. Here's the client(Gui) code:
function pilotPanelOne ()
rWin = guiCreateWindow(472, 289, 158, 152, "Pilot Work", false)
guiWindowSetSizable(rWin, false)
leaveJob = guiCreateButton(12, 70, 136, 31, "Leave the job.", false, rWin)
getJob = guiCreateButton(12, 29, 136, 31, "Get the job.", false, rWin)
theClose = guiCreateButton(12, 111, 136, 31, "Close.", false, rWin)
outputChatBox ("Works")
showCursor (true)
end
addEvent ("pilotPanelOne", true)
addEventHandler ("pilotPanelOne", getLocalPlayer(), pilotPanelOne)
function whenPlayerClickToClose ()
outputChatBox ("Works")
guiSetVisible (rWin, false)
showCursor (false)
end
addEventHandler ("onClientGUIClick", theClose, whenPlayerClickToClose)
Yes, the code just handle one of the buttons, the button for close the panel, i'll not handle the other buttons until this one (theClose) works. Thank you all.