RedM Natives

START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE

Hash0x3FAA72BD940C3AC0
Runtime nameStartParticleFxNonLoopedOnPedBone
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0E7E72961BA18619

Signature

BOOL START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE(const char* effectName, Ped ped, float offsetX, float offsetY, float offsetZ, float rotX, float rotY, float rotZ, int boneIndex, float scale, BOOL axisX, BOOL axisY, BOOL axisZ);

Parameters

NameTypeDescription
effectNameconst char*—
pedPed—
offsetXfloat—
offsetYfloat—
offsetZfloat—
rotXfloat—
rotYfloat—
rotZfloat—
boneIndexint—
scalefloat—
axisXBOOL—
axisYBOOL—
axisZBOOL—

Returns BOOL

Usage

Lua
local retval = StartParticleFxNonLoopedOnPedBone(effectName, ped, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, boneIndex, scale, axisX, axisY, axisZ)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3FAA72BD940C3AC0, effectName, ped, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, boneIndex, scale, axisX, axisY, axisZ, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = StartParticleFxNonLoopedOnPedBone(effectName, ped, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, boneIndex, scale, axisX, axisY, axisZ);

// by hash
const retval = Citizen.invokeNative('0x3FAA72BD940C3AC0', effectName, ped, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, boneIndex, scale + 0.0000001, axisX, axisY, axisZ, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x3FAA72BD940C3AC0, effectName, ped, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, boneIndex, scale, axisX, axisY, axisZ);
  • 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.

Sources

alloc8or RDR3 NativeDB

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