Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. [8:13:33 PM] Zalmon MTA: function(mechanic, vehicle)
  2. if isPlayerInTeam(mechanic, "Mechanics") then
  3. if getElementData(mechanic, "canFix") then
  4. local driver = getVehicleOccupant(vehicle, 0)
  5. if driver then
  6. if getElementData(driver, "orderedMechanic") then
  7. if getElementHealth(vehicle) < 1000 and getElementHealth(vehicle) > 0 then
  8. if getPlayerMoney(driver) >= 5000 then
  9. if fixVehicle(vehicle) then
  10. takePlayerMoney(driver, 5000)
  11. givePlayerMoney(mechanic, 5000)
  12. setElementData(driver, "orderedMechanic", false)
  13. setElementData(mechanic, "canFix", false)
  14. setTimer(setElementData, 60000, 1, mechanic, "canFix", true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement