RedM Natives

_START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE_2

Hash0xC695870B8A149B96
Runtime nameStartParticleFxNonLoopedOnPedBone_2
NamespaceGRAPHICS
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE_2(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_2(effectName, ped, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, boneIndex, scale, axisX, axisY, axisZ)

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

// by hash
const retval = Citizen.invokeNative('0xC695870B8A149B96', 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)0xC695870B8A149B96, 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.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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