RedM Natives

START_PARTICLE_FX_LOOPED_AT_COORD

Hash0xBA32867E86125D3A
Runtime nameStartParticleFxLoopedAtCoord
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE184F4F0DC5910E7

Signature

int START_PARTICLE_FX_LOOPED_AT_COORD(const char* effectName, float x, float y, float z, float xRot, float yRot, float zRot, float scale, BOOL xAxis, BOOL yAxis, BOOL zAxis, BOOL p11);

Parameters

NameTypeDescription
effectNameconst char*—
xfloat—
yfloat—
zfloat—
xRotfloat—
yRotfloat—
zRotfloat—
scalefloat—
xAxisBOOL—
yAxisBOOL—
zAxisBOOL—
p11BOOL—

Returns int

Description

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

Usage

Lua
local retval = StartParticleFxLoopedAtCoord(effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBA32867E86125D3A, effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = StartParticleFxLoopedAtCoord(effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11);

// by hash
const retval = Citizen.invokeNative('0xBA32867E86125D3A', effectName, x + 0.0000001, y + 0.0000001, z + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, scale + 0.0000001, xAxis, yAxis, zAxis, p11, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xBA32867E86125D3A, effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11);
  • 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.