startParticleFxNonLoopedAtCoord
START_PARTICLE_FX_NON_LOOPED_AT_COORD0x25129531F77B9ED3The GTA V native START_PARTICLE_FX_NON_LOOPED_AT_COORD of the GRAPHICS namespace, as LS:MP client scripts call it: the global function startParticleFxNonLoopedAtCoord, in JavaScript and in Lua.
startParticleFxNonLoopedAtCoord(
effectName: string,
xPos: number,
yPos: number,
zPos: number,
xRot: number,
yRot: number,
zRot: number,
scale: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean
): booleanstartParticleFxNonLoopedAtCoord(
effectName: string,
xPos: number,
yPos: number,
zPos: number,
xRot: number,
yRot: number,
zRot: number,
scale: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean
): booleanUsage
const result = startParticleFxNonLoopedAtCoord(
effectName, xPos, yPos, zPos, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis
);local result = startParticleFxNonLoopedAtCoord(
effectName, xPos, yPos, zPos, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis
)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
const result = startParticleFxNonLoopedAtCoord(
effectName, pos, rot, scale, xAxis, yAxis, zAxis
);local result = startParticleFxNonLoopedAtCoord(effectName, pos, rot, scale, xAxis, yAxis, zAxis)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
effectName | string | string | string |
xPos | float | number | number |
yPos | float | number | number |
zPos | float | number | number |
xRot | float | number | number |
yRot | float | number | number |
zRot | float | number | number |
scale | float | number | number |
xAxis | BOOL | boolean | boolean |
yAxis | BOOL | boolean | boolean |
zAxis | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
startParticleFxNonLoopedAtCoord("scr_paleto_roof_impact", -140.8576f, 6420.789f, 41.1391f, 0f, 0f, 267.3957f, 0x3F800000, 0, 0, 0);Axis - Invert Axis Flags
Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json
C#
Function.Call<int>(Hash.START_PARTICLE_FX_NON_LOOPED_AT_COORD, = you are calling this function.
char *effectname = This is an in-game effect name, for e.g. "scr_fbi4_trucks_crash" is used to give the effects when truck crashes etc
float x, y, z pos = this one is Simple, you just have to declare, where do you want this effect to take place at, so declare the ordinates
float xrot, yrot, zrot = Again simple? just mention the value in case if you want the effect to rotate.
float scale = is declare the scale of the effect, this may vary as per the effects for e.g 1.0f
bool xaxis, yaxis, zaxis = To bool the axis values.example:
Function.Call<int>(Hash.START_PARTICLE_FX_NON_LOOPED_AT_COORD, "scr_fbi4_trucks_crash", GTA.Game.Player.Character.Position.X, GTA.Game.Player.Character.Position.Y, GTA.Game.Player.Character.Position.Z + 4f, 0, 0, 0, 5.5f, 0, 0, 0);
Reference
- Namespace
- Graphics GRAPHICS
- In the game
BOOL START_PARTICLE_FX_NON_LOOPED_AT_COORD(const char* effectName, float xPos, float yPos, float zPos, float xRot, float yRot, float zRot, float scale, BOOL xAxis, BOOL yAxis, BOOL zAxis)- Hash
0x25129531F77B9ED3