ARE_COMPOSITE_LOOTABLE_ENTITY_DEF_ASSETS_LOADED
Returns true when requested asset is loaded
Hash
0x5E5D96BE25E9DF68Runtime name
AreCompositeLootableEntityDefAssetsLoadedNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL ARE_COMPOSITE_LOOTABLE_ENTITY_DEF_ASSETS_LOADED(Hash asset);Parameters
| Name | Type | Description |
|---|---|---|
asset | Hash | — |
Returns BOOL
Description
Returns true when requested asset is loaded
Usage
local retval = AreCompositeLootableEntityDefAssetsLoaded(asset)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5E5D96BE25E9DF68, asset, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = AreCompositeLootableEntityDefAssetsLoaded(asset);
// by hash
const retval = Citizen.invokeNative('0x5E5D96BE25E9DF68', asset, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x5E5D96BE25E9DF68, asset);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.