- Documentation
- Server functions
- setModelSeatsFrom
Function
setModelSeatsFrom
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