Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/06/23 in all areas

  1. jobPed = createPed(230, 870.47406, -24.95437, 63.97986, 160) setPedFrozen(jobPed, true) jobMarker = createMarker(870.02686, -25.90853, 62.90933, "cylinder", 1.5) createBlipAttachedTo(jobMarker, 22) function job(thePlayer, matchingDimension) if thePlayer and thePlayer == localPlayer and matchingDimension then window = guiCreateWindow(500, 200, 250, 250, "*Tree JoB*", false) memo = guiCreateMemo(20, 20, 210, 140, "Unicos RP Tree Job. You can make easy money with this one. Happy happy happy.", false, window) button = guiCreateButton(30, 180, 80, 40, "Accept", false, window) closebutton = guiCreateButton(140, 180, 80, 40, "Close", false, window) showCursor(true) end end addEventHandler("onClientMarkerHit", jobMarker, job) function clicks(button, state) if button == "left" and state == "up" then if source == closebutton then guiSetVisible(window, false) showCursor(false) elseif source == button then guiSetVisible(window, false) showCursor(false) triggerServerEvent("StartTreeJob", resourceRoot, localPlayer) end end end addEventHandler("onClientGUIClick", root, clicks) I hope this helps!
    1 point
  2. can you show the server side?
    1 point
  3. also replace the your last line with this addEventHandler ( "onClientGUIClick", closebutton, clicks, false ) addEventHandler ( "onClientGUIClick", button, clicks, false )
    1 point
  4. Esse addEventHandler do onPlayerLogin está com o nome da função errado.
    1 point
  5. onClientResourceStart
    1 point
×
×
  • Create New...