GET_ANIM_INITIAL_OFFSET_ROTATION
Hash
0x4B805E6046EE9E47Runtime name
GetAnimInitialOffsetRotationNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4B805E6046EE9E47Signature
Vector3 GET_ANIM_INITIAL_OFFSET_ROTATION(const char* animDict, const char* animName, float x, float y, float z, float xRot, float yRot, float zRot, float p8, int p9);Parameters
| Name | Type | Description |
|---|---|---|
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
local retval = GetAnimInitialOffsetRotation(animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4B805E6046EE9E47, animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9, Citizen.ResultAsVector())JavaScript and C#
const retval = GetAnimInitialOffsetRotation(animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9);
// by hash
const retval = Citizen.invokeNative('0x4B805E6046EE9E47', 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());Vector3 retval = Function.Call<Vector3>((Hash)0x4B805E6046EE9E47, 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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.