Facebook
From Botched Matamata, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 180
  1. local function button_click()
  2.         if isElementWithinMarker(localPlayer, start_job_marker) then
  3.                 if source == button[1] then
  4.                         if getElementData(localPlayer,"player:license:pjC")==1 then
  5.                                 guiSetVisible(window,false)
  6.                                 showCursor(false)
  7.                                 triggerServerEvent("job_started",resourceRoot,job_marker)
  8.                                 job_marker = nil
  9.                         else
  10.                                 exports.noti:showBox("info", "Nie posiadasz prawa jazdy kategorii C")
  11.                         end
  12.                 end
  13.     else
  14.         guiSetVisible(window,false)
  15.         showCursor(false)
  16.     end
  17. end
  18. addEventHandler("onClientGUIClick",resourceRoot,button_click)