_START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE_2
Hash
0xC695870B8A149B96Runtime name
StartParticleFxNonLoopedOnPedBone_2NamespaceGRAPHICS
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
| 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_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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.