GraphicsClient

setCheckpointRgba2

SET_CHECKPOINT_RGBA20xB9EA40907C680580

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

SignatureJavaScript
setCheckpointRgba2(
  checkpoint: number,
  red: number,
  green: number,
  blue: number,
  alpha: number
): void
SignatureLua
setCheckpointRgba2(
  checkpoint: integer,
  red: integer,
  green: integer,
  blue: integer,
  alpha: integer
)

Usage

JavaScript
setCheckpointRgba2(checkpoint, red, green, blue, alpha);
Lua
setCheckpointRgba2(checkpoint, red, green, blue, alpha)

Parameters

ParameterTypeJavaScriptLua
checkpointintnumberinteger
redintnumberinteger
greenintnumberinteger
blueintnumberinteger
alphaintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the checkpoint icon color.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_CHECKPOINT_RGBA2(int checkpoint, int red, int green, int blue, int alpha)
Hash
0xB9EA40907C680580
Formerly
_SET_CHECKPOINT_ICON_RGBA

Open in the interactive natives reference