RedM Natives

SET_PARTICLE_FX_AMBIENT_COLOUR

Related to Campfires.

Hash0x3C61B52B00848C26
Runtime nameSetParticleFxAmbientColour
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_PARTICLE_FX_AMBIENT_COLOUR(Entity entity, const char* p1, float r, float g, float b);

Parameters

NameTypeDescription
entityEntity—
p1const char*—
rfloat—
gfloat—
bfloat—

Returns void

Description

Related to Campfires.
p1: AMB_BONFIRE_MP, AMB_CAMPFIRE_LRG_MP

Usage

Lua
SetParticleFxAmbientColour(entity, p1, r, g, b)

-- always works, by hash
Citizen.InvokeNative(0x3C61B52B00848C26, entity, p1, r, g, b)
JavaScript and C#
JavaScript
SetParticleFxAmbientColour(entity, p1, r, g, b);

// by hash
Citizen.invokeNative('0x3C61B52B00848C26', entity, p1, r + 0.0000001, g + 0.0000001, b + 0.0000001);
C#
Function.Call((Hash)0x3C61B52B00848C26, entity, p1, r, g, b);
  • 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.