START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE
Hash
0x3FAA72BD940C3AC0Runtime name
StartParticleFxNonLoopedOnPedBoneNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0E7E72961BA18619Signature
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
| Name | Type | Description |
|---|---|---|
effectName | const char* | — |
ped | Ped | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
boneIndex | int | — |
scale | float | — |
axisX | BOOL | — |
axisY | BOOL | — |
axisZ | BOOL | — |
Returns BOOL
Usage
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.