RedM Natives

REQUEST_VEHICLE_ASSET

Hash0x81A15811460FAB3A
Runtime nameRequestVehicleAsset
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x81A15811460FAB3A

Signature

void REQUEST_VEHICLE_ASSET(Hash vehicleHash, int vehicleAsset);

Parameters

NameTypeDescription
vehicleHashHash—
vehicleAssetint—

Returns void

Usage

Lua
RequestVehicleAsset(vehicleHash, vehicleAsset)

-- always works, by hash
Citizen.InvokeNative(0x81A15811460FAB3A, vehicleHash, vehicleAsset)
JavaScript and C#
JavaScript
RequestVehicleAsset(vehicleHash, vehicleAsset);

// by hash
Citizen.invokeNative('0x81A15811460FAB3A', vehicleHash, vehicleAsset);
C#
Function.Call((Hash)0x81A15811460FAB3A, vehicleHash, vehicleAsset);
  • 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`.

See also

Sources

alloc8or RDR3 NativeDB

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