addEventHandler( "onClientClick", getRootElement(), function(button, state )
if ( button == "left" and state == "up" ) then
if ( isCursorOnElement(288, 424, 211, 61)) then
SpawnPlayer()
end
end
end)
this function isCursorOnElement dosen't wrok help me plz
attempt to call global isCursorOnElement a nil value