Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [8:13:33 PM] Zalmon MTA: function(mechanic, vehicle)
- if isPlayerInTeam(mechanic, "Mechanics") then
- if getElementData(mechanic, "canFix") then
- local driver = getVehicleOccupant(vehicle, 0)
- if driver then
- if getElementData(driver, "orderedMechanic") then
- if getElementHealth(vehicle) < 1000 and getElementHealth(vehicle) > 0 then
- if getPlayerMoney(driver) >= 5000 then
- if fixVehicle(vehicle) then
- takePlayerMoney(driver, 5000)
- givePlayerMoney(mechanic, 5000)
- setElementData(driver, "orderedMechanic", false)
- setElementData(mechanic, "canFix", false)
- setTimer(setElementData, 60000, 1, mechanic, "canFix", true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement