These 2 commands are what you need:
Quote: "NDB_VehicleTireSetMaxBrake
syntax: NDB_VehicleTireSetMaxBrake vehicle, tire, maxbrake
vehicle ID of the vehicle joint (integer)
tire_id ID of the tire (integer)
maxbrake maximum braking force the tire can handle (float)
returns: nothing.
Comments: set this value to the absolute max braking force the tire can handle. then when you turn on the brakes for the tire, Newton sill calculate the necessary force to stop the tire. if it's less than this maximum, it'll lock the tire. if it's more, it'll apply this amount."
Quote: "NDB_VehicleTireBrakesOn
syntax: NDB_VehicleTireBrakesOn vehicle, tire, flag
vehicle ID of the vehicle joint (integer)
tire_id ID of the tire (integer)
flag 1 = brakes on, 0 = brakes off (integer)
returns: nothing.
Comments: use this function to turn the brakes on/off for a tire."
Now first of all you check out the overall omega of a tire with this command:
NDB_NewtonVehicleGetTireOmega
And then after some trial and errors you find the maximum force to be applied to the tire(this varies and depends on many different factors)
so you set this amount with the related command and when you set vehicle brakes on, then it locks the tires.
But if you need a normal brake, you keep this maximum force alittle higher so it slows the omega of tires like ASR.
hope it helps.
There is always one more imbecile than you counted on.