Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function speedup (thePlayer)
- if ( getElementType(getPlayerTeam(thePlayer)) == "Unique" ) and ( getElementType(getElementModel(source) == 470) then
- local handlingTable = getVehicleHandling (source)
- local newVelocity = ( handlingTable["maxVelocity"] + ( handlingTable["maxVelocity"] / 100 * 200 ) )
- setVehicleHandling ( source, "numberOfGears", 5 )
- setVehicleHandling ( source, "driveType", 'awd' )
- setVehicleHandling ( source, "maxVelocity", newVelocity )
- setVehicleHandling ( source, "engineAcceleration", handlingTable["engineAcceleration"] +8 )
- end
- end
- addEventHandler("onVehicleEnter", root, speedup)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement