setCheckpointDirection
SET_CHECKPOINT_DIRECTION0x3C788E7F6438754DThe 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.
setCheckpointDirection(
checkpoint: number,
posX: number,
posY: number,
posZ: number
): voidsetCheckpointDirection(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
checkpoint | int | number | integer |
posX | float | number | number |
posY | float | number | number |
posZ | float | number | number |
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