local function button_click() if isElementWithinMarker(localPlayer, start_job_marker) then if source == button[1] then if getElementData(localPlayer,"player:license:pjC")==1 then guiSetVisible(window,false) showCursor(false) triggerServerEvent("job_started",resourceRoot,job_marker) job_marker = nil else exports.noti:showBox("info", "Nie posiadasz prawa jazdy kategorii C") end end else guiSetVisible(window,false) showCursor(false) end end addEventHandler("onClientGUIClick",resourceRoot,button_click)