RedM Natives

HAS_VEHICLE_ASSET_LOADED

Hash0xB935F3154BC913C8
Runtime nameHasVehicleAssetLoaded
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1BBE0523B8DB9A21

Signature

BOOL HAS_VEHICLE_ASSET_LOADED(Hash vehicleAsset);

Parameters

NameTypeDescription
vehicleAssetHash—

Returns BOOL

Usage

Lua
local retval = HasVehicleAssetLoaded(vehicleAsset)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB935F3154BC913C8, vehicleAsset, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasVehicleAssetLoaded(vehicleAsset);

// by hash
const retval = Citizen.invokeNative('0xB935F3154BC913C8', vehicleAsset, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xB935F3154BC913C8, 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`.

Sources

alloc8or RDR3 NativeDB

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