DRAW_LIGHT_WITH_RANGE
Draws a point light at the given position with the given color, range and intensity for the current frame.
Call it every frame to keep the light visible.
Signature
void DRAW_LIGHT_WITH_RANGE(float posX, float posY, float posZ, int colorR, int colorG, int colorB, float range, float intensity); // 0xD2D9E04C0DF927F4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | posX | float |
| 2 | posY | float |
| 3 | posZ | float |
| 4 | colorR | int |
| 5 | colorG | int |
| 6 | colorB | int |
| 7 | range | float |
| 8 | intensity | float |
Facts
| Name | DRAW_LIGHT_WITH_RANGE |
|---|---|
| Hash | 0xD2D9E04C0DF927F4 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xD2D9E04C0DF927F4, -- DRAW_LIGHT_WITH_RANGE
0.0, -- float posX
0.0, -- float posY
0.0, -- float posZ
0, -- int colorR
0, -- int colorG
0, -- int colorB
0.0, -- float range
0.0 -- float intensity
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD2D9E04C0DF927F4", // DRAW_LIGHT_WITH_RANGE
0.0, // float posX
0.0, // float posY
0.0, // float posZ
0, // int colorR
0, // int colorG
0, // int colorB
0.0, // float range
0.0 // float intensity
);Function.Call((Hash)0xD2D9E04C0DF927F4, // DRAW_LIGHT_WITH_RANGE
0.0f, // float posX
0.0f, // float posY
0.0f, // float posZ
0, // int colorR
0, // int colorG
0, // int colorB
0.0f, // float range
0.0f // float intensity
);Related GRAPHICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.