RedM Natives

GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS

Hash0xA9C55F1C15E62E06
Runtime nameGetVehicleMaxNumberOfPassengers
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA7C4F2C6E744A550

Signature

int GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns int

Usage

Lua
local retval = GetVehicleMaxNumberOfPassengers(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA9C55F1C15E62E06, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleMaxNumberOfPassengers(vehicle);

// by hash
const retval = Citizen.invokeNative('0xA9C55F1C15E62E06', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xA9C55F1C15E62E06, vehicle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.