START_PARTICLE_FX_LOOPED_ON_ENTITY
Starts a looped particle effect attached to entity and returns its handle.
Signature
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); // 0xBD41E1440CE39800 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | effectName | const char* |
| 2 | entity | Entity |
| 3 | xOffset | float |
| 4 | yOffset | float |
| 5 | zOffset | float |
| 6 | xRot | float |
| 7 | yRot | float |
| 8 | zRot | float |
| 9 | scale | float |
| 10 | xAxis | BOOL |
| 11 | yAxis | BOOL |
| 12 | zAxis | BOOL |
Facts
| Name | START_PARTICLE_FX_LOOPED_ON_ENTITY |
|---|---|
| Hash | 0xBD41E1440CE39800 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xBD41E1440CE39800, -- START_PARTICLE_FX_LOOPED_ON_ENTITY
"text", -- const char* effectName
PlayerPedId(), -- Entity entity
0.0, -- float xOffset
0.0, -- float yOffset
0.0, -- float zOffset
0.0, -- float xRot
0.0, -- float yRot
0.0, -- float zRot
0.0, -- float scale
false, -- BOOL xAxis
false, -- BOOL yAxis
false, -- BOOL zAxis
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xBD41E1440CE39800", // START_PARTICLE_FX_LOOPED_ON_ENTITY
"text", // const char* effectName
PlayerPedId(), // Entity entity
0.0, // float xOffset
0.0, // float yOffset
0.0, // float zOffset
0.0, // float xRot
0.0, // float yRot
0.0, // float zRot
0.0, // float scale
false, // BOOL xAxis
false, // BOOL yAxis
false, // BOOL zAxis
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xBD41E1440CE39800, // START_PARTICLE_FX_LOOPED_ON_ENTITY
"text", // const char* effectName
API.PlayerPedId(), // Entity entity
0.0f, // float xOffset
0.0f, // float yOffset
0.0f, // float zOffset
0.0f, // float xRot
0.0f, // float yRot
0.0f, // float zRot
0.0f, // float scale
false, // BOOL xAxis
false, // BOOL yAxis
false // BOOL zAxis
);Related GRAPHICS natives
- START_PARTICLE_FX_LOOPED_ON_ENTITY_BONE
- START_PARTICLE_FX_NON_LOOPED_ON_ENTITY
- START_PARTICLE_FX_LOOPED_ON_PED_BONE
- START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE
- START_PARTICLE_FX_LOOPED_AT_COORD
- START_NETWORKED_PARTICLE_FX_LOOPED_ON_ENTITY
- START_NETWORKED_PARTICLE_FX_LOOPED_ON_ENTITY_BONE
- START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY
- START_PARTICLE_FX_NON_LOOPED_AT_COORD
- _START_PARTICLE_FX_NON_LOOPED_ON_PED_BONE_2
- START_NETWORKED_PARTICLE_FX_NON_LOOPED_AT_COORD
- STOP_PARTICLE_FX_LOOPED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.