ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setModelHandling

Function

setModelHandling

ServerVehiclesTrilogy Hub only

Changes the handling of every vehicle of a model at once, for every player, including vehicles created later. A single car's changes from setVehicleHandling take priority over the model setting.

Syntax

bool setModelHandling(int model [, string property = nil, any value = nil])

Arguments

modelint
Vehicle model ID.
propertystring, optional = nil
Handling field name; nil clears all of the model's changes.
valueany, optional = nil
The field's new value; nil removes the change for that field.

Returns

true on success, false for an unknown field.

Example

setModelHandling(596, "maxVelocity", 220)
setModelHandling(596, "engineAcceleration", 32) -- fabrycznie 25 (skala handling.cfg)

See also