RedM Natives

GET_VEHICLE_MODEL_NUMBER_OF_SEATS

Hash0x9A578736FF3A17C3
Runtime nameGetVehicleModelNumberOfSeats
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2AD93716F184EDA4

Signature

int GET_VEHICLE_MODEL_NUMBER_OF_SEATS(Hash modelHash);

Parameters

NameTypeDescription
modelHashHash—

Returns int

Usage

Lua
local retval = GetVehicleModelNumberOfSeats(modelHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9A578736FF3A17C3, modelHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleModelNumberOfSeats(modelHash);

// by hash
const retval = Citizen.invokeNative('0x9A578736FF3A17C3', modelHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9A578736FF3A17C3, modelHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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