Furious^ONE! Posted July 18, 2019 Share Posted July 18, 2019 Hello, I make script for custom handling care when player enter inside this vehicles, but : I want add this option in my code but dont work in game. setVehicleHandling(v, "USE_MAXSP_LIMIT", true) Script: function vhandling ( ) for _,v in pairs(getElementsByType("vehicle")) do if getElementModel(v) == 470 then -------------- vehicle Id setVehicleHandling(v, "maxVelocity", 220) setVehicleHandling(v, "engineAcceleration", 12.5) --- setVehicleHandling(v, "steeringLock", 40 ) setVehicleHandling(v, "collisionDamageMultiplier", 0.1) setVehicleHandling (v, "mass", 2500) setVehicleHandling(v, "turnMass", 7968.7) setVehicleHandling(v, "dragCoeff", 2.5 ) setVehicleHandling(v, "centerOfMass", { 0.0,0.0,0.0 } ) setVehicleHandling(v, "percentSubmerged", 80) setVehicleHandling(v, "numberOfGears", 5) setVehicleHandling(v, "engineInertia", 15) setVehicleHandling(v, "driveType", "awd") setVehicleHandling(v, "engineType", "petrol") setVehicleHandling(v, "brakeDeceleration", 20.0) setVehicleHandling(v, "brakeBias", 0.60) -----abs---- setVehicleHandling(v, "tractionMultiplier", 0.7) setVehicleHandling(v, "tractionLoss", 0.85) setVehicleHandling(v, "tractionBias", 0.5) setVehicleHandling(v, "suspensionForceLevel", 1.5) setVehicleHandling(v, "suspensionDamping", 0.08 ) setVehicleHandling(v, "suspensionHighSpeedDamping", 4) setVehicleHandling(v, "suspensionUpperLimit", 0.35 ) setVehicleHandling(v, "suspensionLowerLimit", -0.35) setVehicleHandling(v, "suspensionFrontRearBias", 0.5 ) setVehicleHandling(v, "suspensionAntiDiveMultiplier", 0.0) setVehicleHandling(v, "seatOffsetDistance", 0.0) setVehicleHandling(v, "USE_MAXSP_LIMIT", true) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), vhandling ) Link to comment
HassoN Posted July 18, 2019 Share Posted July 18, 2019 "USE_MAXSP_LIMIT" is not a valid property. Check the full table of valid properties here: https://wiki.multitheftauto.com/wiki/SetVehicleHandling Link to comment
Furious^ONE! Posted July 18, 2019 Author Share Posted July 18, 2019 So, it's impossible put the "USE_MAXSP_LIMIT" in setVehicleHandling? Link to comment
HassoN Posted July 18, 2019 Share Posted July 18, 2019 if you mean by 'USE_MAXSP_LIMIT' speed limit then you may use 'maxVelocity' instead. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now