The Lab
GRAPHICS native

DRAW_LIGHT_WITH_RANGE

returns void8 paramsbuild 1207

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

C
void DRAW_LIGHT_WITH_RANGE(float posX, float posY, float posZ, int colorR, int colorG, int colorB, float range, float intensity); // 0xD2D9E04C0DF927F4 b1207

Parameters

#NameType
1posXfloat
2posYfloat
3posZfloat
4colorRint
5colorGint
6colorBint
7rangefloat
8intensityfloat

Facts

Facts about DRAW_LIGHT_WITH_RANGE
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.