- Documentation
- Server functions
- setVehicleModelDummyPosition
Function
setVehicleModelDummyPosition
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
getVehicleModelDummyPositionReturns a model helper point position set withsetVehicleModelDummyPosition.setModelSeatPositionMoves a seat position in a vehicle for the whole model, for every player: where the ped sits and which way it faces. Most often used to place seats in new vehicles fromengineRequestModelandengineReplaceModel, which by default have the base car's seats. The number of seats does not change.