GET_ANIM_SCENE_ORIGIN
Hash
0xADF1D53F3B1FE0A7Runtime name
GetAnimSceneOriginNamespaceANIMSCENE
SideClient
NameOfficial
Docs
Since build1207
Signature
void GET_ANIM_SCENE_ORIGIN(AnimScene animScene, Vector3* position, Vector3* rotation, int order);Parameters
| Name | Type | Description |
|---|---|---|
animScene | AnimScene | — |
position | Vector3* | — |
rotation | Vector3* | — |
order | int | — |
Returns void
Usage
local position, rotation = GetAnimSceneOrigin(animScene, order)
-- always works, by hash
local position, rotation = Citizen.InvokeNative(0xADF1D53F3B1FE0A7, animScene, Citizen.PointerValueVector(), Citizen.PointerValueVector(), order)JavaScript and C#
const [position, rotation] = GetAnimSceneOrigin(animScene, order);
// by hash
const [position, rotation] = Citizen.invokeNative('0xADF1D53F3B1FE0A7', animScene, Citizen.pointerValueVector(), Citizen.pointerValueVector(), order);var position = new OutputArgument();
var rotation = new OutputArgument();
Function.Call((Hash)0xADF1D53F3B1FE0A7, animScene, position, rotation, order);
// position.GetResult<Vector3>()
// rotation.GetResult<Vector3>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.