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

Function

setVehicleMaxPassengers

ServerVehiclesTrilogy Hub only

Stores a model's number of passenger seats on the server. The game client usually does this automatically; a script can provide it earlier so getVehicleMaxPassengers knows it from the start.

Syntax

bool setVehicleMaxPassengers(int model, int count)

Arguments

modelint
Vehicle model ID.
countint
Number of passenger seats.

Returns

true on success.

Example

setVehicleMaxPassengers(411, 1)

See also