RedM Natives

REQUEST_NAMED_PTFX_ASSET

Hash0xF2B2353BBC0D4E8F
Runtime nameRequestNamedPtfxAsset
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB80D8756B4668AB6

Signature

void REQUEST_NAMED_PTFX_ASSET(Hash fxNameHash);

Parameters

NameTypeDescription
fxNameHashHash—

Returns void

Usage

Lua
RequestNamedPtfxAsset(fxNameHash)

-- always works, by hash
Citizen.InvokeNative(0xF2B2353BBC0D4E8F, fxNameHash)
JavaScript and C#
JavaScript
RequestNamedPtfxAsset(fxNameHash);

// by hash
Citizen.invokeNative('0xF2B2353BBC0D4E8F', fxNameHash);
C#
Function.Call((Hash)0xF2B2353BBC0D4E8F, 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`.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.