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!