A comprehensive and feature-rich radial menu system for ESX servers, integrating with ox_inventory, ox_lib, oxmysql, and ox_target for a complete gameplay experience.
- ox_lib Integration: Modern UI components with radial menu system
- ox_target Integration: Context-based interactions with players and vehicles
- ox_inventory Integration: Quick item usage and inventory management
- oxmysql Integration: Database logging and user preferences
- ESX Framework: Full integration with ESX for job-based actions
- Player information display (ID, job, money)
- Animation system with multiple categories (dance, greetings, misc)
- Walking styles selection
- Ragdoll and surrender animations
- Quick inventory access
- Engine toggle
- Door controls (individual doors, trunk, hood)
- Light controls
- Window operations
- Mechanic-specific repair options
- Handcuff players
- Search players
- Issue fines
- Jail players
- Drag players
- Put players in vehicles
- License checks
- Heal players
- Revive players
- Check pulse
- Stretcher operations
- Repair vehicles
- Vehicle diagnostics
- Impound vehicles
- Predefined locations (Hospital, Police Station, etc.)
- Waypoint setting and clearing
- Custom location support
- Configurable quick-use items
- Direct inventory integration
- Item usage tracking
- ESX Legacy (latest version)
- ox_lib (latest version)
- ox_inventory (latest version)
- ox_target (latest version)
- oxmysql (latest version)
cd resources
git clone https://github.com/Main-Scripts/main-radialmenu.gitExecute the database.sql file in your MySQL database:
mysql -u username -p database_name < database.sqlAdd to your server.cfg:
ensure ox_lib
ensure ox_inventory
ensure ox_target
ensure oxmysql
ensure main-radialmenuMake sure all required resources are started before main-radialmenu:
# Correct order
start ox_lib
start ox_inventory
start ox_target
start oxmysql
start es_extended
start main-radialmenuConfig.RadialKey = 'F1' -- Key to open radial menu
Config.MenuPosition = 'bottom-right' -- Menu position
Config.MenuSize = 'md' -- Menu size (sm, md, lg)
Config.UseTarget = true -- Enable ox_target integrationEnable/disable job-specific features:
Config.JobMenus = {
police = {
enabled = true,
items = {
{label = 'Handcuff', action = 'handcuff', icon = 'fas fa-lock'},
-- Add more items...
}
}
}Config.VehicleOptions = {
engine = true, -- Toggle engine
doors = true, -- Open/close doors
trunk = true, -- Open trunk
hood = true, -- Open hood
}Config.QuickItems = {
{label = 'Bandage', item = 'bandage', icon = 'fas fa-band-aid'},
{label = 'Water', item = 'water', icon = 'fas fa-tint'},
-- Add more items...
}- Default: Press
F1to open the radial menu - ox_target: Right-click on players/vehicles for context menu
- Mouse: Move mouse to highlight options
- Click: Select highlighted option
- ESC: Close menu
- View player information
- Access animations and emotes
- Change walking styles
- Quick ragdoll/surrender
- Control engine, doors, lights
- Access trunk and hood
- Mechanic repair options
- Context-sensitive based on player job
- Permission-based access
- Action logging to database
- Fast access to frequently used items
- One-click item usage
- Inventory integration
Add custom animations in the config:
Config.Animations = {
custom = {
{label = 'My Animation', dict = 'dict_name', anim = 'anim_name'},
}
}Config.GPSLocations = {
{label = 'Custom Location', coords = vector3(x, y, z), icon = 'fas fa-star'},
}The resource creates several tables for advanced features:
radial_logs- Action loggingradial_user_settings- User preferencesradial_favorites- Favorite menu itemsradial_animations- Custom animationsradial_job_permissions- Job permissionsradial_gps_locations- Custom GPS locations
- Check if ox_lib is properly installed and started
- Verify the keybind in config matches your preference
- Check F8 console for errors
- Ensure player has the correct job assigned
- Check job permissions in database
- Verify ESX job system is working
- Ensure ox_target is installed and running
- Check Config.UseTarget is set to true
- Verify target distance settings
- Ensure oxmysql is properly configured
- Check database connection settings
- Verify all tables are created
# Debug mode
setr radial_debug true
# Restart resource
restart main-radialmenu
# Check dependencies
ensure ox_lib
- Event-driven architecture
- Minimal tick usage
- Efficient database queries
- Resource cleanup on disconnect
- Client: ~0.01ms average
- Server: ~0.02ms average
- Database: Optimized with indexes
- Check this README first
- Review the configuration files
- Check server console for errors
- Join our Discord for support
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- ESX Framework - Core framework
- Overextended - ox_lib, ox_inventory, ox_target, oxmysql
- Community - Testing and feedback
- Initial release
- Full ESX integration
- ox_lib radial menu system
- ox_target context menus
- ox_inventory integration
- Database logging system
- Job-specific actions
- Vehicle controls
- Animation system
- GPS waypoints
Made with ❤️ by Main-Scripts
For more resources and support, visit our GitHub