Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- JOB INFO:
- {job="Oiler", team="Civilian Workers", skin={95}, jobEvent="CIToiler,Hit", maxWanted=3, description="In this job, you have to get in a Roadtrain and supply the gas stations around the map. In order to do it, you will have to supply yourself first, by filling the tank in your truck."},
- -- JOB MARKER:
- {job="Oiler", MX=-1029.081, MY=-595.558, MZ=31, MR=255, MG=255, MB=0, blipID=56},
- -- VEHICLE SPAWNERS
- {a=-1022.306, b=-675.636, c=31, d={"Oiler"}, e=50, f=100, g=255, h=90, i={65, 105, 225, 255, 255, 255}, j={515}},
- {a=-1007.306, b=-675.636, c=31, d={"Oiler"}, e=50, f=100, g=255, h=90, i={65, 105, 225, 255, 255, 255}, j={515}},
- {a=-992.306, b=-675.636, c=31, d={"Oiler"}, e=50, f=100, g=255, h=90, i={65, 105, 225, 255, 255, 255}, j={515}},
- function hit()
- --This could be useful later
- end
- addEvent("CIToiler.Hit", true)
- addEventHandler("CIToiler.Hit", root, hit)
- function pay(moneyAmount,fullRefill)
- acc = getPlayerAccount(client)
- exports.CITaccounts:GPM(client, moneyAmount, "CIToiler Station Refill", true)
- exports.CITaccounts:invSet(acc, "TotalStationsFilled", (exports.CITaccounts:invGet(acc, "TotalStationsFilled") or 0 ) + 1)
- if (fullRefill) then
- exports.CIThelp:dm("You filled the deposit and made $"..moneyAmount,client,0,255,0)
- else
- exports.CIThelp:dm("You failed filling the deposit, but you still made $"..moneyAmount,client,0,255,0)
- end
- end
- addEvent("CIToiler.Pay", true)
- addEventHandler("CIToiler.Pay", root, pay)
- function onPlayerResign()
- if (exports.CITbusiness:getPlayerJob(source) == "Oiler") then
- triggerClientEvent(source, "CIToiler.JobStop", source)
- end
- end
- addEventHandler("onPlayerResing", root, onPlayerResign)
Add Comment
Please, Sign In to add comment