TasksClient

taskSynchronizedScene

TASK_SYNCHRONIZED_SCENE0xEEA929141F699854

The GTA V native TASK_SYNCHRONIZED_SCENE of the TASK namespace, as LS:MP client scripts call it: the global function taskSynchronizedScene, in JavaScript and in Lua.

SignatureJavaScript
taskSynchronizedScene(
  ped: Ped,
  scene: number,
  animDictionary: string,
  animationName: string,
  blendIn: number,
  blendOut: number,
  flags: number,
  ragdollBlockingFlags: number,
  moverBlendDelta: number,
  ikFlags: number
): void
SignatureLua
taskSynchronizedScene(
  ped: Ped,
  scene: integer,
  animDictionary: string,
  animationName: string,
  blendIn: number,
  blendOut: number,
  flags: integer,
  ragdollBlockingFlags: integer,
  moverBlendDelta: number,
  ikFlags: integer
)

Usage

JavaScript
taskSynchronizedScene(
  ped, scene, animDictionary, animationName, blendIn, blendOut, flags, ragdollBlockingFlags,
  moverBlendDelta, ikFlags
);
Lua
taskSynchronizedScene(
    ped, scene, animDictionary, animationName, blendIn, blendOut, flags, ragdollBlockingFlags,
    moverBlendDelta, ikFlags
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
sceneintnumberinteger
animDictionarystringstringstring
animationNamestringstringstring
blendInfloatnumbernumber
blendOutfloatnumbernumber
flagsintnumberinteger
ragdollBlockingFlagsintnumberinteger
moverBlendDeltafloatnumbernumber
ikFlagsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

taskSynchronizedScene(ped, scene, "creatures@rottweiler@in_vehicle@std_car", "get_in", 1000.0, -8.0, 4, 0, 0x447a0000, 0);

Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json

Reference

Namespace
Tasks TASK
In the game
void TASK_SYNCHRONIZED_SCENE(Ped ped, int scene, const char* animDictionary, const char* animationName, float blendIn, float blendOut, int flags, int ragdollBlockingFlags, float moverBlendDelta, int ikFlags)
Hash
0xEEA929141F699854

Open in the interactive natives reference