Wiki
Clone wikiEFLC-MP LUA / CheckPoint Functions
Checkpoint Functions
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