GraphicsClient

drawDebugLine

DRAW_DEBUG_LINE0x7FDFADE676AA3CB0

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

SignatureJavaScript
drawDebugLine(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  r: number,
  g: number,
  b: number,
  alpha: number
): void
SignatureLua
drawDebugLine(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  r: integer,
  g: integer,
  b: integer,
  alpha: integer
)

Usage

JavaScript
drawDebugLine(x1, y1, z1, x2, y2, z2, r, g, b, alpha);
Lua
drawDebugLine(x1, y1, z1, x2, y2, z2, r, g, b, alpha)

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
drawDebugLine(pos1, pos2, r, g, b, alpha);
Lua · with vectors
drawDebugLine(pos1, pos2, r, g, b, alpha)

Parameters

ParameterTypeJavaScriptLua
x1floatnumbernumber
y1floatnumbernumber
z1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber
z2floatnumbernumber
rintnumberinteger
gintnumberinteger
bintnumberinteger
alphaintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void DRAW_DEBUG_LINE(float x1, float y1, float z1, float x2, float y2, float z2, int r, int g, int b, int alpha)
Hash
0x7FDFADE676AA3CB0

Open in the interactive natives reference