GraphicsClient

setCheckpointDirection

SET_CHECKPOINT_DIRECTION0x3C788E7F6438754D

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

SignatureJavaScript
setCheckpointDirection(
  checkpoint: number,
  posX: number,
  posY: number,
  posZ: number
): void
SignatureLua
setCheckpointDirection(
  checkpoint: integer,
  posX: number,
  posY: number,
  posZ: number
)

Usage

JavaScript
setCheckpointDirection(checkpoint, posX, posY, posZ);
Lua
setCheckpointDirection(checkpoint, posX, posY, posZ)

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
setCheckpointDirection(checkpoint, pos);
Lua · with vectors
setCheckpointDirection(checkpoint, pos)

Parameters

ParameterTypeJavaScriptLua
checkpointintnumberinteger
posXfloatnumbernumber
posYfloatnumbernumber
posZfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_CHECKPOINT_DIRECTION(int checkpoint, float posX, float posY, float posZ)
Hash
0x3C788E7F6438754D
Introduced
Game build 1180 legacy numbering

Open in the interactive natives reference