- Documentation
- Server functions
- resetModelSeatPosition
Function
resetModelSeatPosition
Restores the factory (or inherited from the base model) position of one seat of a model or, without a seat number, of all its seats.
Syntax
bool resetModelSeatPosition(int model [, int seat = nil])Arguments
modelint- Vehicle model ID.
seatint, optional = nil- Seat 0-7;
nil= all.
Returns
true on success.
Example
resetModelSeatPosition(411)
See also
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.getModelSeatPositionReturns a model's current seat position and the source of the data:script(set by script),dummy(from the model's helper point) ordefault(factory, from the game).