Wiki

Clone wiki

EFLC-MP LUA / CheckPoint Functions

Checkpoint Functions

isValidCheckPoint

createCheckPoint

deleteCheckPoint

isValidCheckPoint

setCheckPointBlipForPlayer

setCheckPointShowingForPlayer

Checkpoints Demo

#!lua
local function createCheckPoint()
    --Creates a solid red 20m high checkpoint at the coordinates you give it
    createCheckPoint(posX, posY, posZ, 20.0, 0xFF0000FF, 1, 0, 1)

    --Register the available checkpoint events
    registerEvent("playerEnteredCp", "onPlayerEnterCheckPoint")
    registerEvent("playerExitCp", "onPlayerExitCheckPoint")
end

function playerEnteredCp(playerId)
end


function playerExitCp(playerId)
end

Updated