ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getModelDefaultSeatPosition

Function

getModelDefaultSeatPosition

Server and clientVehiclesTrilogy Hub only

Returns the game's factory seat position for a model (for new models, of the base model), without script changes.

Syntax

float, float, float, float getModelDefaultSeatPosition(int model, int seat)

Arguments

modelint
Vehicle model ID.
seatint
Seat 0-7.

Returns

x, y, z, heading, or false when the model has no such seat.

Example

local x, y, z = getModelDefaultSeatPosition(400, 1)

See also