RedM Natives

PLAY_ENTITY_SCRIPTED_ANIM

Hash0x77A1EEC547E7FCF1
Runtime namePlayEntityScriptedAnim
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x77A1EEC547E7FCF1

Signature

void PLAY_ENTITY_SCRIPTED_ANIM(Entity entity, Any* args);

Parameters

NameTypeDescription
entityEntity—
argsAny*—

Returns void

Usage

Lua
local args = PlayEntityScriptedAnim(entity, args)

-- always works, by hash
local args = Citizen.InvokeNative(0x77A1EEC547E7FCF1, entity, Citizen.PointerValueIntInitialized(args))
JavaScript and C#
JavaScript
const args = PlayEntityScriptedAnim(entity, args);

// by hash
const args = Citizen.invokeNative('0x77A1EEC547E7FCF1', entity, Citizen.pointerValueIntInitialized(args));
C#
var args = new OutputArgument();
Function.Call((Hash)0x77A1EEC547E7FCF1, entity, args);
// args.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

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