RedM Natives

GET_ANIM_INITIAL_OFFSET_POSITION

Hash0xBE22B26DD764C040
Runtime nameGetAnimInitialOffsetPosition
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBE22B26DD764C040

Signature

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

NameTypeDescription
animDictconst char*—
animNameconst char*—
xfloat—
yfloat—
zfloat—
xRotfloat—
yRotfloat—
zRotfloat—
p8float—
p9int—

Returns Vector3

Usage

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

-- always works, by hash
local retval = Citizen.InvokeNative(0xBE22B26DD764C040, animDict, animName, x, y, z, xRot, yRot, zRot, p8, p9, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
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#
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.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.