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 successfullystatus(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
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.