Skip to main content

Overview

The Zyrix Admin API provides a powerful interface for programmatically managing your FiveM server. With over 40+ functions covering player management, moderation, vehicle control, staff tools, and server administration, you can build custom integrations and extend your server’s functionality.
All API functions include built-in permission checking and return consistent response patterns for reliable integration.

Quick Start

Basic Usage

Response Pattern

All API functions return a consistent tuple format:
  • success (boolean) - Whether the operation completed successfully
  • status (string) - Status code: ‘success’, ‘no_permission’, ‘invalid_target’, ‘player_not_found’, etc.
  • data (optional) - Additional data returned by specific functions

API Categories

🎮 Player Management

Control player positioning, health, and state with teleportation, healing, freezing, and revival functions.

⚖️ Moderation

Issue warnings, kicks, and bans with comprehensive logging and webhook integration.

🚗 Vehicle Management

Spawn, delete, repair, and manage vehicles with advanced customization options.

👁️ Staff Tools

Spectate players, enable noclip, control visibility, and access other administrative tools.

🖥️ Server Management

Take screenshots, make announcements, capture player snapshots, and control server restarts.

Permission System

All functions automatically check staff permissions based on your Zyrix configuration:

Error Handling

Always check the success status and handle errors appropriately:

Webhooks & Logging

Most administrative actions automatically trigger:
  • Discord webhook notifications (if configured)
  • Server console logging
  • Action history recording
These API functions perform real administrative actions on your server. Always validate permissions and input parameters before calling them in production environments.

Need Help?

  • Join our Discord for development support
  • Check the individual function documentation for detailed usage examples
  • Review the error handling section for troubleshooting common issues

Ready to get started? Choose a category from the sidebar to explore specific functions and see detailed code examples.