# ANIMSCENE::SET_ANIM_SCENE_ORIGIN

- **Hash:** `0x020894BF17A02EF2`
- **Namespace:** ANIMSCENE
- **Runtime name (Lua/JS):** `SetAnimSceneOrigin`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ANIMSCENE/SET_ANIM_SCENE_ORIGIN

## Signature

```c
void SET_ANIM_SCENE_ORIGIN(AnimScene animScene, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, int order);
```

## Parameters

- `animScene` (`AnimScene`)
- `posX` (`float`)
- `posY` (`float`)
- `posZ` (`float`)
- `rotX` (`float`)
- `rotY` (`float`)
- `rotZ` (`float`)
- `order` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
SetAnimSceneOrigin(animScene, posX, posY, posZ, rotX, rotY, rotZ, order)

-- always available, by hash
Citizen.InvokeNative(0x020894BF17A02EF2, animScene, posX, posY, posZ, rotX, rotY, rotZ, order)
```

### JavaScript

```js
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);
```

### C#

```csharp
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. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

## See also

- [ANIMSCENE::GET_ANIM_SCENE_ORIGIN](https://natives.borderlinerp.com/natives/ANIMSCENE/GET_ANIM_SCENE_ORIGIN.md)

*Sources: alloc8or RDR3 NativeDB.*
