drawShadowedSpotLight
DRAW_SHADOWED_SPOT_LIGHT0x5BCA583A583194DBThe 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.
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
): voiddrawShadowedSpotLight(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
posX | float | number | number |
posY | float | number | number |
posZ | float | number | number |
dirX | float | number | number |
dirY | float | number | number |
dirZ | float | number | number |
colorR | int | number | integer |
colorG | int | number | integer |
colorB | int | number | integer |
distance | float | number | number |
brightness | float | number | number |
roundness | float | number | number |
radius | float | number | number |
falloff | float | number | number |
shadowId | int | number | integer |
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