Jump to content

setModelHandling problems!


Recommended Posts

Hello!

I have a server with a handling script, and if i restart the handling script, it always give me an error at all the lines that are setting the driveTypes

"  Bad argument @ 'setModelHandling' [Expected bool at argument 4, got none.] "

Argument 4? Even what that is ? I think setModelHandling has only 3 args. Any ideas?

Thanks

Link to comment

For example, this is for alpha: 

	setModelHandling(602, "mass", 1500)
	setModelHandling(602, "turnMass", 3400)
	setModelHandling(602, "dragCoeff", 2.0)
	setModelHandling(602, "centerOfMass", { 0.0, 0.1, -0.2})
	setModelHandling(602, "percentSubmerged", 85)
	setModelHandling(602, "tractionMultiplier", 0.9)
	setModelHandling(602, "tractionLoss", 1.8)
	setModelHandling(602, "tractionBias", 0.5)
	setModelHandling(602, "numberOfGears", 5)
	setModelHandling(602, "maxVelocity", 515)
	setModelHandling(602, "engineAcceleration", 39.5)
	setModelHandling(602, "engineInertia", 10)
	setModelHandling(602, "driveType", "4")
	setModelHandling(602, "engineType", "petrol")
	setModelHandling(602, "brakeDeceleration", 16)
	setModelHandling(602, "brakeBias", 0.55)
	setModelHandling(602, "ABS", false)
	setModelHandling(602, "steeringLock", 40.0)
	setModelHandling(602, "suspensionForceLevel", 1.2)
	setModelHandling(602, "suspensionDamping", 0.8)
	setModelHandling(602, "suspensionHighSpeedDamping", 0.0)
	setModelHandling(602, "suspensionUpperLimit", 0.3)
	setModelHandling(602, "suspensionLowerLimit", -0.15)
	setModelHandling(602, "suspensionFrontRearBias", 0.5)
	setModelHandling(602, "suspensionAntiDiveMultiplier", 0.4)
	setModelHandling(602, "seatOffsetDistance", 0.25) 
	setModelHandling(602, "collisionDamageMultiplier", 0.5)
	setModelHandling(602, "monetary", 35000)
	setModelHandling(602, "modelFlags", 4)
	setModelHandling(602, "handlingFlags", 2)
	setModelHandling(602, "headLight", 1)
	setModelHandling(602, "tailLight", 1)
	setModelHandling(602, "animGroup", 0)

And at the line that changes the driveType, it gives the error that i said.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...