RedM Natives

START_PARTICLE_FX_NON_LOOPED_ON_ENTITY

Hash0xFF4C64C513388C12
Runtime nameStartParticleFxNonLoopedOnEntity
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0D53A3B8DA0809D2

Signature

BOOL START_PARTICLE_FX_NON_LOOPED_ON_ENTITY(const char* effectName, Entity entity, float offsetX, float offsetY, float offsetZ, float rotX, float rotY, float rotZ, float scale, BOOL axisX, BOOL axisY, BOOL axisZ);

Parameters

NameTypeDescription
effectNameconst char*—
entityEntity—
offsetXfloat—
offsetYfloat—
offsetZfloat—
rotXfloat—
rotYfloat—
rotZfloat—
scalefloat—
axisXBOOL—
axisYBOOL—
axisZBOOL—

Returns BOOL

Usage

Lua
local retval = StartParticleFxNonLoopedOnEntity(effectName, entity, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, scale, axisX, axisY, axisZ)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFF4C64C513388C12, effectName, entity, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, scale, axisX, axisY, axisZ, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = StartParticleFxNonLoopedOnEntity(effectName, entity, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, scale, axisX, axisY, axisZ);

// by hash
const retval = Citizen.invokeNative('0xFF4C64C513388C12', effectName, entity, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, scale + 0.0000001, axisX, axisY, axisZ, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xFF4C64C513388C12, effectName, entity, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, scale, axisX, axisY, axisZ);
  • 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.