The Lab
VEHICLE native

HAS_VEHICLE_ASSET_LOADED

returns BOOL1 parambuild 1207

Returns true if the vehicle asset vehicleAsset has loaded.

Signature

C
BOOL HAS_VEHICLE_ASSET_LOADED(Hash vehicleAsset); // 0xB935F3154BC913C8 b1207

Parameters

#NameType
1vehicleAssetHash

Facts

Facts about HAS_VEHICLE_ASSET_LOADED
Name
HAS_VEHICLE_ASSET_LOADED
Hash
0xB935F3154BC913C8
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xB935F3154BC913C8, -- HAS_VEHICLE_ASSET_LOADED
  GetHashKey("name") -- Hash vehicleAsset
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xB935F3154BC913C8", // HAS_VEHICLE_ASSET_LOADED
  GetHashKey("name"), // Hash vehicleAsset
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xB935F3154BC913C8, // HAS_VEHICLE_ASSET_LOADED
  (uint)API.GetHashKey("name") // Hash vehicleAsset
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.