SET_PARTICLE_FX_AMBIENT_COLOUR
Related to Campfires.
Hash
0x3C61B52B00848C26Runtime name
SetParticleFxAmbientColourNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
Signature
void SET_PARTICLE_FX_AMBIENT_COLOUR(Entity entity, const char* p1, float r, float g, float b);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
p1 | const char* | — |
r | float | — |
g | float | — |
b | float | — |
Returns void
Description
Related to Campfires.
p1: AMB_BONFIRE_MP, AMB_CAMPFIRE_LRG_MP
Usage
SetParticleFxAmbientColour(entity, p1, r, g, b)
-- always works, by hash
Citizen.InvokeNative(0x3C61B52B00848C26, entity, p1, r, g, b)JavaScript and C#
SetParticleFxAmbientColour(entity, p1, r, g, b);
// by hash
Citizen.invokeNative('0x3C61B52B00848C26', entity, p1, r + 0.0000001, g + 0.0000001, b + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.