TASK_SCRIPTED_ANIMATION
Hash
0x126EF75F1E17ABE5Runtime name
TaskScriptedAnimationNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x126EF75F1E17ABE5Signature
void TASK_SCRIPTED_ANIMATION(Ped ped, Any* args);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
args | Any* | — |
Returns void
Usage
local args = TaskScriptedAnimation(ped, args)
-- always works, by hash
local args = Citizen.InvokeNative(0x126EF75F1E17ABE5, ped, Citizen.PointerValueIntInitialized(args))JavaScript and C#
const args = TaskScriptedAnimation(ped, args);
// by hash
const args = Citizen.invokeNative('0x126EF75F1E17ABE5', ped, Citizen.pointerValueIntInitialized(args));var args = new OutputArgument();
Function.Call((Hash)0x126EF75F1E17ABE5, ped, 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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.