Skip to content

MetaBuild

A guide to install MetaBuild for FiveM

Take your server customization to the next level with MetaBuild! Whether you’re crafting a post-apocalyptic world or building a large-scale military training facility, MetaBuild gives you complete freedom to construct, edit, and manage objects effortlessly. MetaBuild even allows you to save your creations after server restarts!

  • Build Mode (No Clip) - Easily move and place objects without restrictions
  • Synchronized - Everything you build is synchronized over all players
  • Saved - Everything you build is saved, unless you configure to refresh on restarts
  • Advanced Snapping Tools - Rotate and snap objects with precision
  • Ground Placement Option - Ensure stable and realistic object positioning
  • Demolish Mode - Quickly remove unwanted structures
  • Comprehensive Object Menu - Manage objects (Build, edit, delete, customize categories)
  • Built-in Door Lock System - Secure areas with key-based access
  • Key Management - Give, take, or reset duplicate keys
  • Object Customization - Add, edit, and delete objects with ease
  • Object Pictures - A picture for almost every object in the menu
  • High Performance Rendering - Supports up to 1,500 objects per 750 GTA meters
  • Custom Object Lifespan - Define how long objects remain in-game
  • Paid Construction Option - Monetize object placement if desired
  • Flexible Permissions - Configure access for Admins, Moderators, Trusted Users
  • Detailed Permission Settings - Control building zones, editing, road construction
  • Powerful Management Panel - Mass delete objects/keys, track stats
  • Discord Webhook Integrations - Built-in Discord notifications
  • Multi-Framework Support - ESX/QBCore/Standalone compatible
  • Escrow Protection - Secure resource with multi-language support
  • OneSync Legacy: Fully tested and compatible
  • OneSync Infinity: Fully tested and compatible
  • ESX: Full compatibility with ESX framework
  • QBCore: Full compatibility with QBCore framework
  • Standalone: Works without any framework
  • MySQL Database - Required for data storage
  • oxmysql - Required database API
  • Dynamic Door Creation - Server setting required
  1. Access CFX Portal
    • Go to CFX Portal Assets
    • Find “MetaBuild” in your granted assets
    • Download the ZIP package
  1. Extract the ZIP file

    • Unpack the downloaded ZIP package to a local folder
    • Ensure all files are properly extracted
  2. Transfer to Server

    • Set your FTP client to binary transfer mode
    • Upload the night_metabuild folder to your server’s resources directory
    • Maintain the original folder structure

Add the following line to your server.cfg file:

ensure night_metabuild

Add this line to your server.cfg above the starting of scripts:

setr game_enableDynamicDoorCreation "true"

Add your MySQL connection string to server.cfg above the ensure/start of resources:

set mysql_connection_string "user=Your_Database_Username;password=Your_Database_Password;host=Your_Database_Host;port=3306;database=Your_Database_Name;charset=utf8mb4_general_ci"

When you boot up the server, MetaBuild will automatically run queries to install the required tables into your database.

If you don’t have oxmysql installed, download it from: Download oxmysql

  1. Place oxmysql into your resources folder
  2. Add to server.cfg - Ensure it starts before MetaBuild:
ensure oxmysql

Start your server and check the console for oxmysql connection messages. You should see confirmation that the database connection is working.

File Purpose
night_metabuild/config/config.lua Main configuration settings
night_metabuild/client/c_functions.lua Client-side functions
night_metabuild/server/s_functions.lua Server-side functions
  1. Open VS Code and navigate to the config files
  2. Read thoroughly - each line has explanatory comments
  3. Configure in order - work from top to bottom
  4. Watch for notes - important warnings are clearly marked
  5. Test frequently - use F8 console and server console for error checking

MetaBuild can post to a Discord channel when players place or demolish objects, when objects are added to or removed from the menu, and when keys or objects are deleted in bulk. Webhooks are off by default. To turn them on, set both lines in config/config.lua:

Config.Enable_Discord_Webhooks = true
Config.DiscordWebhookUrl = 'https://discord.com/api/webhooks/...'
  • Build Mode - No-clip movement and object placement
  • Advanced Snapping - Precise object rotation and positioning
  • Ground Placement - Stable and realistic object positioning
  • High Performance - Supports up to 1,500 objects per 750 GTA meters
  • Object Lifespan - Customizable object persistence
  • Comprehensive Menu - Build, edit, delete, and customize objects
  • Door Lock System - Key-based access control
  • Key Management - Give, take, or reset duplicate keys
  • Mass Operations - Bulk delete objects and keys
  • Statistics Tracking - Monitor object usage and performance

The object menu shows a picture of each object, made by Nights Software. Each player’s game downloads them from assets.nights-software.com and keeps them, so a picture is downloaded only once. For the few objects without one, the menu uses the picture site set in Config.ApiUrl (config/default-objects-config.lua).

To use your own picture for an object, open the object’s edit menu and put a link to the image in Custom Picture URL (use an https:// link). Leave the field empty to show the default picture.

  • Flexible Access - Configure for Admins, Moderators, Trusted Users
  • Zone Control - Define building zones and restrictions
  • Road Construction - Control road building permissions
  • Menu Access - Manage who can access building menus
  • Standalone - Works independently without framework dependencies
  • ESX - Full ESX framework integration
  • QBCore - Full QBCore framework integration
  • MySQL Database - Persistent storage for all constructions
  • oxmysql API - Reliable database connectivity
  • Automatic Backups - Built-in data protection
  • Object Limits - Monitor object count per area
  • Database Performance - Optimize MySQL queries
  • Rendering Distance - Configure appropriate render distances
  • Permission Planning - Set up appropriate access levels
  • Zone Management - Define logical building zones
  • Object Organization - Use categories for better management
  • Backup Configurations - Keep backups of working configurations
  • Regular Backups - Backup your database regularly
  • Performance Monitoring - Monitor database performance
  • Table Maintenance - Periodically optimize database tables
  • Object Limits - Respect recommended object limits
  • Render Optimization - Configure appropriate render distances
  • Resource Management - Monitor resource usage with large builds

Read through the instructions again if you have not managed to install the resource. Can’t get it to work still? Create a ticket through our dedicated support system in Discord:

Nights Software Discord