SET_ANIM_SCENE_ORIGIN
Hash
0x020894BF17A02EF2Runtime name
SetAnimSceneOriginNamespaceANIMSCENE
SideClient
NameOfficial
Docs
Since build1207
Signature
void SET_ANIM_SCENE_ORIGIN(AnimScene animScene, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, int order);Parameters
| Name | Type | Description |
|---|---|---|
animScene | AnimScene | — |
posX | float | — |
posY | float | — |
posZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
order | int | — |
Returns void
Usage
SetAnimSceneOrigin(animScene, posX, posY, posZ, rotX, rotY, rotZ, order)
-- always works, by hash
Citizen.InvokeNative(0x020894BF17A02EF2, animScene, posX, posY, posZ, rotX, rotY, rotZ, order)JavaScript and C#
SetAnimSceneOrigin(animScene, posX, posY, posZ, rotX, rotY, rotZ, order);
// by hash
Citizen.invokeNative('0x020894BF17A02EF2', animScene, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, order);Function.Call((Hash)0x020894BF17A02EF2, animScene, posX, posY, posZ, rotX, rotY, rotZ, order);- 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.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.