TASK_ENTER_ANIM_SCENE
Hash
0xC2329B0206426644Runtime name
TaskEnterAnimSceneNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_ENTER_ANIM_SCENE(Ped ped, AnimScene animScene, const char* entityName, const char* playbackListName, float enterSpeed, BOOL bAutoStart, int flag, int p7, float p8);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
animScene | AnimScene | — |
entityName | const char* | — |
playbackListName | const char* | — |
enterSpeed | float | — |
bAutoStart | BOOL | — |
flag | int | — |
p7 | int | — |
p8 | float | — |
Returns void
Description
flags:
MOVE_WHILST_WAITING_FOR_PATH = (1 << 0),
DO_NOT_STAND_STILL_AT_END_OF_PATH = (1 << 1),
SKIP_NAVIGATION = (1 << 2),
TEASF_AUTO_START_ANIM_SCENE = (1 << 3),
FORCE_STAND_STILL_AT_END_OF_PATH = (1 << 6),
ENTER_ANIM_SCENE_DONT_FOLLOW_NAVMESH = (1 << 7)
Usage
TaskEnterAnimScene(ped, animScene, entityName, playbackListName, enterSpeed, bAutoStart, flag, p7, p8)
-- always works, by hash
Citizen.InvokeNative(0xC2329B0206426644, ped, animScene, entityName, playbackListName, enterSpeed, bAutoStart, flag, p7, p8)JavaScript and C#
TaskEnterAnimScene(ped, animScene, entityName, playbackListName, enterSpeed, bAutoStart, flag, p7, p8);
// by hash
Citizen.invokeNative('0xC2329B0206426644', ped, animScene, entityName, playbackListName, enterSpeed + 0.0000001, bAutoStart, flag, p7, p8 + 0.0000001);Function.Call((Hash)0xC2329B0206426644, ped, animScene, entityName, playbackListName, enterSpeed, bAutoStart, flag, p7, p8);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.