StreamingClient

hasNamedPtfxAssetLoaded

HAS_NAMED_PTFX_ASSET_LOADED0x8702416E512EC454

The GTA V native HAS_NAMED_PTFX_ASSET_LOADED of the STREAMING namespace, as LS:MP client scripts call it: the global function hasNamedPtfxAssetLoaded, in JavaScript and in Lua.

SignatureJavaScript
hasNamedPtfxAssetLoaded(fxName: string): boolean
SignatureLua
hasNamedPtfxAssetLoaded(fxName: string): boolean

Usage

JavaScript
const result = hasNamedPtfxAssetLoaded(fxName);
Lua
local result = hasNamedPtfxAssetLoaded(fxName)

Parameters

ParameterTypeJavaScriptLua
fxNamestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Streaming STREAMING
In the game
BOOL HAS_NAMED_PTFX_ASSET_LOADED(const char* fxName)
Hash
0x8702416E512EC454

Open in the interactive natives reference