Advertisement
Guest User

Untitled

a guest
Dec 18th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. function speedup (thePlayer)
  2. if ( getElementType(getPlayerTeam(thePlayer)) == "Unique" ) and ( getElementType(getElementModel(source) == 470) then
  3. local handlingTable = getVehicleHandling (source)
  4. local newVelocity = ( handlingTable["maxVelocity"] + ( handlingTable["maxVelocity"] / 100 * 200 ) )
  5. setVehicleHandling ( source, "numberOfGears", 5 )
  6. setVehicleHandling ( source, "driveType", 'awd' )
  7. setVehicleHandling ( source, "maxVelocity", newVelocity )
  8. setVehicleHandling ( source, "engineAcceleration", handlingTable["engineAcceleration"] +8 )
  9. end
  10. end
  11. addEventHandler("onVehicleEnter", root, speedup)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement