RedM Natives

HAS_NAMED_PTFX_ASSET_LOADED

Hash0x65BB72F29138F5D6
Runtime nameHasNamedPtfxAssetLoaded
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8702416E512EC454

Signature

BOOL HAS_NAMED_PTFX_ASSET_LOADED(Hash fxNameHash);

Parameters

NameTypeDescription
fxNameHashHash—

Returns BOOL

Usage

Lua
local retval = HasNamedPtfxAssetLoaded(fxNameHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x65BB72F29138F5D6, fxNameHash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasNamedPtfxAssetLoaded(fxNameHash);

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