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

Function

setVehicleAdjustableProperty

ServerVehiclesIdentical to MTA:SA

Stores the setting of a vehicle's movable part: dozer blade, forklift forks, crane arm, Hydra nozzles.

Syntax

bool setVehicleAdjustableProperty(vehicle vehicle, int value)

Arguments

vehiclevehicle
A vehicle with a movable part.
valueint
Position 0-4000 (0 = rest).

Returns

true on success.

Example

local forklift = createVehicle(530, 2200, -2250, 13.5)
setVehicleAdjustableProperty(forklift, 2000)

Notes

State for scripts. The game does not move the part on a script's command yet; the driver does it.

See also