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

Function

setVehicleDummyPosition

ServerVehiclesIdentical to MTA:SA

Stores the position of a helper point (dummy) for one vehicle, e.g. the exhaust or lights.

Syntax

bool setVehicleDummyPosition(vehicle vehicle, string dummy, float x, float y, float z)

Arguments

vehiclevehicle
The vehicle.
dummystring
Point name, e.g. exhaust, light_front_main, engine.
xfloat
X in vehicle space (m).
yfloat
Y (m).
zfloat
Z (m).

Returns

true on success.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleDummyPosition(vehicle, "exhaust", 0.5, -2.3, -0.3)

Notes

State for scripts. The game does not move points of a single vehicle yet; the seats of a whole model are moved with setVehicleModelDummyPosition.

See also