CS Docs

Whitelist Teleport Export

Learn how to use the whitelist teleport feature in Cyber Anticheat.

Overview

The whitelist teleport feature allows you to create safe teleport zones that only whitelisted players can access. This helps prevent unauthorized teleportation which is a common method used by cheaters.

Whitelist Teleport Command

Adding a Player to Teleport Whitelist

To add a player to the teleport whitelist, use:

/tpwhitelist [id] [time]
Example:/tpwhitelist 1 60

Whitelist Teleport Export

You can use the export in your scripts to check if a player is whitelisted for teleportation.

Lua Example

-- CLIENT withlist teleport export 
exports["CyberAnticheat"]:cyber_tpsafely(PlayerPedId(), coords)

-- SERVER whitelist teleport export
exports["CyberAnticheat"]:cyber_tpsafely(source, coords)

Parameters

  • PlayerPedId or sourceThe server ID of the player to check
  • coordsBoolean indicating if the coords is whitelisted for teleportation