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

Function

setModelSeatsFrom

ServerVehiclesTrilogy Hub only

Copies seat positions from another model to the given model, e.g. a new vehicle from engineRequestModel should seat people like a Sultan. Without a seat number it copies every seat the source has.

Syntax

int setModelSeatsFrom(int model, int source [, int seat = nil])

Arguments

modelint
The model whose seats are changed.
sourceint
The source model (400-611 or another).
seatint, optional = nil
One seat 0-7 to copy; nil = all.

Returns

The number of seats copied, or false.

Example

local model = engineRequestModel("vehicle", 560)
if model then setModelSeatsFrom(model, 560) end

See also