RedM Natives

START_NETWORKED_PARTICLE_FX_LOOPED_ON_ENTITY

Hash0x8F90AB32E1944BDE
Runtime nameStartNetworkedParticleFxLoopedOnEntity
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6F60E89A7B64EE1D

Signature

int START_NETWORKED_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

NameTypeDescription
effectNameconst char*—
entityEntity—
xOffsetfloat—
yOffsetfloat—
zOffsetfloat—
xRotfloat—
yRotfloat—
zRotfloat—
scalefloat—
xAxisBOOL—
yAxisBOOL—
zAxisBOOL—

Returns int

Usage

Lua
local retval = StartNetworkedParticleFxLoopedOnEntity(effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8F90AB32E1944BDE, effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = StartNetworkedParticleFxLoopedOnEntity(effectName, entity, xOffset, yOffset, zOffset, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis);

// by hash
const retval = Citizen.invokeNative('0x8F90AB32E1944BDE', 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());
C#
int retval = Function.Call<int>((Hash)0x8F90AB32E1944BDE, 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. 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.