playSynchronizedMapEntityAnim
PLAY_SYNCHRONIZED_MAP_ENTITY_ANIM0xB9C54555ED30FBC4The GTA V native PLAY_SYNCHRONIZED_MAP_ENTITY_ANIM of the ENTITY namespace, as LS:MP client scripts call it: the global function playSynchronizedMapEntityAnim, in JavaScript and in Lua.
playSynchronizedMapEntityAnim(
x1: number,
y1: number,
z1: number,
x2: number,
y2: any,
z2: number,
p6: string,
p7: string,
p8: number,
p9: number,
p10: any,
p11: number
): booleanplaySynchronizedMapEntityAnim(
x1: number,
y1: number,
z1: number,
x2: number,
y2: any,
z2: number,
p6: string,
p7: string,
p8: number,
p9: number,
p10: any,
p11: number
): booleanUsage
JavaScript
const result = playSynchronizedMapEntityAnim(x1, y1, z1, x2, y2, z2, p6, p7, p8, p9, p10, p11);Lua
local result = playSynchronizedMapEntityAnim(x1, y1, z1, x2, y2, z2, p6, p7, p8, p9, p10, p11)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
const result = playSynchronizedMapEntityAnim(pos1, x2, y2, z2, p6, p7, p8, p9, p10, p11);Lua · with vectors
local result = playSynchronizedMapEntityAnim(pos1, x2, y2, z2, p6, p7, p8, p9, p10, p11)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x1 | float | number | number |
y1 | float | number | number |
z1 | float | number | number |
x2 | float | number | number |
y2 | Any | any | any |
z2 | float | number | number |
p6 | string | string | string |
p7 | string | string | string |
p8 | float | number | number |
p9 | float | number | number |
p10 | Any | any | any |
p11 | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
p6,p7 probably animname and animdict
Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
Reference
- Namespace
- Entity ENTITY
- In the game
BOOL PLAY_SYNCHRONIZED_MAP_ENTITY_ANIM(float x1, float y1, float z1, float x2, Any y2, float z2, const char* p6, const char* p7, float p8, float p9, Any p10, float p11)- Hash
0xB9C54555ED30FBC4