START_NETWORKED_PARTICLE_FX_LOOPED_ON_ENTITY_BONE
Hash
0x9C56621462FFE7A6Runtime name
StartNetworkedParticleFxLoopedOnEntityBoneNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xDDE23F30CC5A0F03Signature
int START_NETWORKED_PARTICLE_FX_LOOPED_ON_ENTITY_BONE(const char* effectName, Entity entity, 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* | — |
entity | Entity | — |
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 = StartNetworkedParticleFxLoopedOnEntityBone(effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9C56621462FFE7A6, effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis, Citizen.ResultAsInteger())JavaScript and C#
const retval = StartNetworkedParticleFxLoopedOnEntityBone(effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis, zAxis);
// by hash
const retval = Citizen.invokeNative('0x9C56621462FFE7A6', effectName, entity, 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)0x9C56621462FFE7A6, effectName, entity, 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.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.