START_PARTICLE_FX_LOOPED_ON_PED_BONE
Hash
0xE689C1B1432BB8AFRuntime name
StartParticleFxLoopedOnPedBoneNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF28DA9F38CD1787CSignature
int START_PARTICLE_FX_LOOPED_ON_PED_BONE(const char* effectName, Ped ped, float xOffset, float yOffset, float zOffset, float xRot, float yRot, float zRot, int boneIndex, float scale, BOOL xAxis, BOOL yAxis, BOOL zAxis);Parameters
| Name | Type | Description |
|---|---|---|
effectName | const char* | — |
ped | Ped | — |
xOffset | float | — |
yOffset | float | — |
zOffset | float | — |
xRot | float | — |
yRot | float | — |
zRot | float | — |
boneIndex | int | — |
scale | float | — |
xAxis | BOOL | — |
yAxis | BOOL | — |
zAxis | BOOL | — |
Returns int
Usage
local retval = StartParticleFxLoopedOnPedBone(effectName, ped, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE689C1B1432BB8AF, effectName, ped, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis, Citizen.ResultAsInteger())JavaScript and C#
const retval = StartParticleFxLoopedOnPedBone(effectName, ped, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis);
// by hash
const retval = Citizen.invokeNative('0xE689C1B1432BB8AF', effectName, ped, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, boneIndex, scale + 0.0000001, xAxis, yAxis, zAxis, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xE689C1B1432BB8AF, effectName, ped, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis);- 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.
Enums and flags
- eAnimBoneTag 911 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.