GraphicsClient

drawShadowedSpotLight

DRAW_SHADOWED_SPOT_LIGHT0x5BCA583A583194DB

The GTA V native DRAW_SHADOWED_SPOT_LIGHT of the GRAPHICS namespace, as LS:MP client scripts call it: the global function drawShadowedSpotLight, in JavaScript and in Lua.

SignatureJavaScript
drawShadowedSpotLight(
  posX: number,
  posY: number,
  posZ: number,
  dirX: number,
  dirY: number,
  dirZ: number,
  colorR: number,
  colorG: number,
  colorB: number,
  distance: number,
  brightness: number,
  roundness: number,
  radius: number,
  falloff: number,
  shadowId: number
): void
SignatureLua
drawShadowedSpotLight(
  posX: number,
  posY: number,
  posZ: number,
  dirX: number,
  dirY: number,
  dirZ: number,
  colorR: integer,
  colorG: integer,
  colorB: integer,
  distance: number,
  brightness: number,
  roundness: number,
  radius: number,
  falloff: number,
  shadowId: integer
)

Usage

JavaScript
drawShadowedSpotLight(
  posX, posY, posZ, dirX, dirY, dirZ, colorR, colorG, colorB, distance, brightness, roundness,
  radius, falloff, shadowId
);
Lua
drawShadowedSpotLight(
    posX, posY, posZ, dirX, dirY, dirZ, colorR, colorG, colorB, distance, brightness, roundness,
    radius, falloff, shadowId
)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
drawShadowedSpotLight(
  pos, dir, colorR, colorG, colorB, distance, brightness, roundness, radius, falloff, shadowId
);
Lua · with vectors
drawShadowedSpotLight(
    pos, dir, colorR, colorG, colorB, distance, brightness, roundness, radius, falloff, shadowId
)

Parameters

ParameterTypeJavaScriptLua
posXfloatnumbernumber
posYfloatnumbernumber
posZfloatnumbernumber
dirXfloatnumbernumber
dirYfloatnumbernumber
dirZfloatnumbernumber
colorRintnumberinteger
colorGintnumberinteger
colorBintnumberinteger
distancefloatnumbernumber
brightnessfloatnumbernumber
roundnessfloatnumbernumber
radiusfloatnumbernumber
fallofffloatnumbernumber
shadowIdintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void DRAW_SHADOWED_SPOT_LIGHT(float posX, float posY, float posZ, float dirX, float dirY, float dirZ, int colorR, int colorG, int colorB, float distance, float brightness, float roundness, float radius, float falloff, int shadowId)
Hash
0x5BCA583A583194DB
Formerly
_DRAW_SPOT_LIGHT_WITH_SHADOW

Open in the interactive natives reference