Skip to main content

Overview

The Zyrix API provides powerful teleportation functions for moving players around your server. All teleportation functions include permission checking and support coordinate validation.

TeleportPlayer

Teleport a player to specific coordinates.

Syntax

Parameters

  • staffId (number) - Server ID of the staff member performing the action
  • targetId (number) - Server ID of the player to teleport
  • coords (vector4) - Target coordinates with heading vector4(x, y, z, heading)

Returns

  • success (boolean) - Whether the teleportation succeeded
  • status (string) - Status code: 'success', 'no_permission', 'player_not_found', 'invalid_target'

Example

BringPlayer

Bring a target player to the staff member’s location.

Syntax

Parameters

  • staffId (number) - Server ID of the staff member
  • targetId (number) - Server ID of the player to bring

Returns

  • success (boolean) - Whether the bring action succeeded
  • status (string) - Status code

Example

TeleportToPlayer

Teleport staff member to a target player’s location.

Syntax

Parameters

  • staffId (number) - Server ID of the staff member to teleport
  • targetId (number) - Server ID of the target player

Returns

  • success (boolean) - Whether the teleportation succeeded
  • status (string) - Status code

Example

Advanced Examples

Bulk Player Teleportation

Safe Teleportation with Validation

Teleportation with Confirmation

Teleportation History Tracking

Common Use Cases

Event Management

Quick Travel System

Always validate coordinates before teleportation to prevent players from being teleported to invalid locations or outside the game world.

Error Handling

Common error scenarios and how to handle them: