Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:1.30

Description

Description:

Sets a vehicle

's

maximum reachable speed (in ideal conditions,

i.e.

smooth roads).

The set limit can exceed the vehicle

's

maximum speed, as defined in its configuration.

Since

In V3.6+, the limit can also be applied to helicopters, but as the limiting mechanism (raised nose) only works in certain circumstances, it is still possible to exceed the defined limit in certain flight situations.

Syntax

Syntax:vehicle setMaxSpeedLimit limit
Parameters:
  • vehicle: Object - Vehicle to which the speed limit is applied to.
  • limit: Number - Approximate maximum limit in km/h.

  • If set to <=0, the original limit from the vehicle
's config will be
  • configuration is used.
Return Value:Nothing

Examples

Examples:
(vehicle player) setMaxSpeedLimit 20;

Additional Information

See also: getMaxSpeedLimit, forceSpeed, limitSpeed, setSpeedMode
Multiplayer:
 

Problems:
 

Notes