function start_pracagui(thePlayer)
guiSetVisible(tabpanel, false)
guiSetVisible(tab, false)
showCursor(false)
triggerServerEvent("praca_start", localPlayer)
if isPedInVehicle(localPlayer) then -- if the local client is in a vehicle
localVehicle = getPedOccupiedVehicle(localPlayer)
if getVehicleController(localVehicle) == localPlayer then
local rotX, rotY, rotZ = getElementRotation(localVehicle) -
setElementRotation(localVehicle,rotX,rotY,rotZ+90)
end
end
end
addEventHandler("onClientGUIClick", tak, start_pracagui)