RedM Natives

START_PARTICLE_FX_NON_LOOPED_AT_COORD

Hash0x2E80BF72EF7C87AC
Runtime nameStartParticleFxNonLoopedAtCoord
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x25129531F77B9ED3

Signature

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);

Parameters

NameTypeDescription
effectNameconst char*—
xPosfloat—
yPosfloat—
zPosfloat—
xRotfloat—
yRotfloat—
zRotfloat—
scalefloat—
xAxisBOOL—
yAxisBOOL—
zAxisBOOL—

Returns BOOL

Description

https://github.com/femga/rdr3_discoveries/blob/master/graphics/ptfx/ptfx_assets_non_looped.lua

Usage

Lua
local retval = StartParticleFxNonLoopedAtCoord(effectName, xPos, yPos, zPos, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2E80BF72EF7C87AC, effectName, xPos, yPos, zPos, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = StartParticleFxNonLoopedAtCoord(effectName, xPos, yPos, zPos, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis);

// by hash
const retval = Citizen.invokeNative('0x2E80BF72EF7C87AC', effectName, xPos + 0.0000001, yPos + 0.0000001, zPos + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, scale + 0.0000001, xAxis, yAxis, zAxis, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x2E80BF72EF7C87AC, effectName, xPos, yPos, zPos, 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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.