function PZ() if guiGetVisible(Panel) == false then if isPedInVehicle (getLocalPlayer()) then guiSetVisible(Panel, true) showCursor(true) elseif guiSetVisible(Panel, false) showCursor (false) end end end bindKey("F5","down",PZ)