Wiki

Clone wiki

EFLC-MP LUA / createCheckPoint

Description

Creates a new checkpoint.

Parameters

Float posX, Float posY, Float posZ, Float radius, Int rgba, Int type, Int blipSprite, Int virtualWorld
Float posX: game world x

Float posY: game world y

Float posZ: game world z

Float radius: size of the checkpoint

Int rgba: hex color in RGBA

Int type: the drawable variation of the checkpoint, currently only id 1 is available

Int blipSprite: blip sprite ID or 0 for no blip

Int virtualWorld: virtual world this checkpoint will be streamed to

Return values

Int checkPointId

Example

#!lua
--Creates a new checkpoint at your position
local x, y, z = getPlayerPos(myId)
local cp = createCheckPoint(x,y, z, 15, 0xFF0000FF, 1, 0, 1);

Updated