RedM Natives

ARE_COMPOSITE_LOOTABLE_ENTITY_DEF_ASSETS_LOADED

Returns true when requested asset is loaded

Hash0x5E5D96BE25E9DF68
Runtime nameAreCompositeLootableEntityDefAssetsLoaded
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL ARE_COMPOSITE_LOOTABLE_ENTITY_DEF_ASSETS_LOADED(Hash asset);

Parameters

NameTypeDescription
assetHash—

Returns BOOL

Description

Returns true when requested asset is loaded

Usage

Lua
local retval = AreCompositeLootableEntityDefAssetsLoaded(asset)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5E5D96BE25E9DF68, asset, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = AreCompositeLootableEntityDefAssetsLoaded(asset);

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