# PED::GET_ANIM_INITIAL_OFFSET_POSITION

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

## Signature

```c
Vector3 GET_ANIM_INITIAL_OFFSET_POSITION(const char* animDict, const char* animName, float x, float y, float z, float xRot, float yRot, float zRot, float p8, int p9);
```

## Parameters

- `animDict` (`const char*`)
- `animName` (`const char*`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `xRot` (`float`)
- `yRot` (`float`)
- `zRot` (`float`)
- `p8` (`float`)
- `p9` (`int`)

## Returns

`Vector3`

## Usage

### Lua

```lua
local retval = GetAnimInitialOffsetPosition(animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9)

-- always available, by hash
local retval = Citizen.InvokeNative(0xBE22B26DD764C040, animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetAnimInitialOffsetPosition(animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9);

// by hash
const retval = Citizen.invokeNative('0xBE22B26DD764C040', animDict, animName, x + 0.0000001, y + 0.0000001, z + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, p8 + 0.0000001, p9, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
Vector3 retval = Function.Call<Vector3>((Hash)0xBE22B26DD764C040, animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9);
```

- 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.

## Related enums

- [eEulerRotationOrder](https://natives.borderlinerp.com/enums/eEulerRotationOrder.md) — 6 values

*Sources: alloc8or RDR3 NativeDB.*
