Skip to content

Gates & Bollards

A guide to install Gates & Bollards for FiveM

Unlock another opportunity in FiveM! Easily configure gates and bollards at strategic positions, giving you total control over opening times and simultaneous operations. Choose from a variety of object models to personalize your gates and bollards. This synchronized resource ensures a uniform experience for all players. Plus, enjoy the convenience of an intuitive object placement tool. Get creative and tailor your environment to suit your vision. It’s your world – configure it your way!

  • Configure infinite gates - Unlimited gate configurations
  • Bollard creation tool - Configure locations and distances with single command
  • Gate creation tool - Easy gate configuration with single command
  • Configurable duration - Set gate opening/closure timing
  • Inventory item usage - Framework integration for item requirements
  • Command usage configuration - Customize command access
  • Multi-Framework Support - ESX/QB/NS Discord API/Ace Perms/Standalone
  • OneSync Compatible - Works with Legacy and Infinity
  • Multi-Language Support - International server support
  • Escrow Protection - Secure resource protection

Follow our step-by-step installation guide:

Installation Tutorial

  • OneSync Legacy: Fully tested and compatible
  • OneSync Infinity: Fully tested and compatible
  • ESX: Full compatibility with ESX framework
  • QBCore: Full compatibility with QBCore framework
  • NS Discord API: Compatible with Discord API integration
  • Ace Permissions: Compatible with ACE permission system
  • Standalone: Works without any framework
  1. Access CFX Portal
    • Go to CFX Portal Assets
    • Find “Gates & Bollards” 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_gates folder to your server’s resources directory
    • Maintain the original folder structure

Add the following line to your server.cfg file:

ensure night_gates
File Purpose
night_gates/config/config.lua Main configuration settings
night_gates/client/c_functions.lua Client-side functions
night_gates/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
  • Infinite Gate Configuration - Set up unlimited gates across your map
  • Strategic Positioning - Place gates at key locations for access control
  • Synchronized Operations - Uniform experience for all players
  • Custom Object Models - Choose from various gate and bollard models
  • Distance Configuration - Set spacing between bollards
  • Location Management - Configure bollard positions strategically
  • Creation Tool - Use /createbollards command for easy setup
  • Flexible Layouts - Adapt to different road and entrance configurations
  • Timing Control - Configure opening and closing durations
  • Command Integration - Customize command usage and permissions
  • Framework Integration - Item-based access for ESX/QBCore
  • Permission System - Role-based access control
  • Standalone - Works independently without framework dependencies
  • ESX - Full ESX framework integration with inventory items
  • QBCore - Full QBCore framework integration with inventory items
  • Discord API - Role-based permissions through Discord integration
  • ACE Permissions - Server-side permission management
  • Framework Permissions - ESX/QBCore group-based access
  • Limit gate density - Avoid excessive gates in small areas
  • Optimize object models - Use appropriate models for your needs
  • Monitor server performance - Check for any performance impacts
  • Plan Your Layout - Map out gate and bollard positions before configuration
  • Use Creation Tools - Leverage the built-in creation commands for accurate positioning
  • Test Thoroughly - Verify all gates and bollards work as expected
  • Backup Configurations - Keep backups of working configurations
  • Permission Management - Regularly review access permissions
  • Command Security - Restrict creation commands to authorized users
  • Escrow Protection - Keep resource escrow enabled for security
  • Efficient Positioning - Place gates strategically to minimize performance impact
  • Object Selection - Choose appropriate models for your server’s performance
  • Resource Management - Monitor resource usage with large gate systems

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