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

Function

setVehicleModelDummyPosition

ServerVehiclesIdentical to MTA:SA

Stores the position of a helper point (dummy) for a whole vehicle model. The seat_front and seat_rear points move the seats (front and rear) in the game for every player; other points are stored for scripts.

Syntax

bool setVehicleModelDummyPosition(int model, string dummy, float x, float y, float z)

Arguments

modelint
Vehicle model ID.
dummystring
Point name, e.g. seat_front, seat_rear, exhaust, engine, light_front_main.
xfloat
X coordinate in vehicle space (m).
yfloat
Y coordinate (m).
zfloat
Z coordinate (m).

Returns

true on success.

Example

setVehicleModelDummyPosition(411, "seat_front", 0.45, -0.15, 0.05)

See also