START_PARTICLE_FX_LOOPED_ON_ENTITY
Hash
0xBD41E1440CE39800Runtime name
StartParticleFxLoopedOnEntityNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x1AE42C1660FD6517Signature
int START_PARTICLE_FX_LOOPED_ON_ENTITY(const char* effectName, Entity entity, float xOffset, float yOffset, float zOffset, float xRot, float yRot, float zRot, 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 | — |
scale | float | — |
xAxis | BOOL | — |
yAxis | BOOL | — |
zAxis | BOOL | — |
Returns int
Usage
local retval = StartParticleFxLoopedOnEntity(effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis)
-- always works, by hash
local retval = Citizen.InvokeNative(0xBD41E1440CE39800, effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, Citizen.ResultAsInteger())JavaScript and C#
const retval = StartParticleFxLoopedOnEntity(effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis);
// by hash
const retval = Citizen.invokeNative('0xBD41E1440CE39800', effectName, entity, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, scale + 0.0000001, xAxis, yAxis, zAxis, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xBD41E1440CE39800, effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, 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.