Here is a example:
addEventHandler("onClientResourceStart", resourceRoot,
function ()
Button = guiCreateButton (363,350,152,44, "", false) -- Creation of the button, whenever the player enter in server-
guiSetAlpha (Button, 0.00) -- Set alpha of the button to 0.00
addEventHandler('onClientRender', root, Render) -- Render of the Rectangle
end)
addEventHandler ( "onClientGUIClick", resourceRoot,
function ()
if (source == Button) then
outputChatBox('Click')
end
end)
function Render ()
dxDrawRectangle (363,350,152,44,tocolor(255,0,0,255))
end