Gates & Bollards for FiveM
A guide to install Gates & Bollards for FiveM
๐ Table of Contents
- ๐ฏ Overview
- ๐ฅ Video Showcase
- ๐ Installation Tutorial
- ๐ Purchase Information
- โ ๏ธ Important Pre-Installation Notes
- ๐ง System Requirements & Compatibility
- ๐ฆ Installation Process
- โ๏ธ Configuration Setup
- ๐ฎ How It Works
- ๐ Integration & Compatibility
- ๐ ๏ธ Troubleshooting
- ๐ก Best Practices
- ๐ Support
๐ฏ Overview
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!
Key Features
- โ 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
๐ฅ Video Showcase
Watch Gates & Bollards in action:
๐ Installation Tutorial
Follow our step-by-step installation guide:
๐ Purchase Information
Get Gates & Bollards:
Purchase on Nights Software Store
โ ๏ธ Important Pre-Installation Notes
Critical Installation Order: Always follow this exact sequence to avoid parsing errors in the F8 console:
- Download ZIP Package from CFX Portal
- Unpack in a folder on your local machine
- Set File Transfer Protocol (FTP) type to binary
- Drag files from local machine to server resources folder
- Add to server.cfg (ensure script)
- Boot up the server
Support Policy: Follow this guide step by step. If youโre stuck, ask for support in our Discord and provide the specific step name. Do not skip steps.
๐ง System Requirements & Compatibility
OneSync Compatibility
- โ OneSync Legacy: Fully tested and compatible
- โ OneSync Infinity: Fully tested and compatible
Framework Compatibility
- โ 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
Note: Gates & Bollards works seamlessly with all major FiveM frameworks and can operate standalone.
๐ฆ Installation Process
Step 1: Download the Resource
- Access CFX Portal
- Go to CFX Portal Assets
- Find โGates & Bollardsโ in your granted assets
- Download the ZIP package
Step 2: Extract and Transfer
- Extract the ZIP file
- Unpack the downloaded ZIP package to a local folder
- Ensure all files are properly extracted
- Transfer to Server
- Set your FTP client to binary transfer mode
- Upload the
night_gates
folder to your serverโsresources
directory - Maintain the original folder structure
Step 3: Server Configuration
Add the following line to your server.cfg
file:
ensure night_gates
Server Restart: After adding the ensure line, restart your server for the resource to load properly.
โ๏ธ Configuration Setup
Required Tools
Visual Studio Code: We strongly recommend downloading VS Code for editing Lua files.
Configuration Files
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 |
Configuration Process
- Open VS Code and navigate to the config files
- Read thoroughly - each line has explanatory comments
- Configure in order - work from top to bottom
- Watch for notes - important warnings are clearly marked
- Test frequently - use F8 console and server console for error checking
Time Investment: Plan adequate time for configuration. Each variable is named descriptively to help you understand its purpose.
๐ฎ How It Works
Gate Management
- 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
Config snippet generation: A .txt file is generated in the
night_gates
folder upon using this tool. It contains your config setup for the placed prefab of the gate/bollard(s).
Bollard System
- 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
Config snippet generation: A .txt file is generated in the
night_gates
folder upon using this tool. It contains your config setup for the placed prefab of the gate/bollard(s).
Access Control
- 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
๐ Integration & Compatibility
Framework Support
- Standalone - Works independently without framework dependencies
- ESX - Full ESX framework integration with inventory items
- QBCore - Full QBCore framework integration with inventory items
Permission Systems
- Discord API - Role-based permissions through Discord integration
- ACE Permissions - Server-side permission management
- Framework Permissions - ESX/QBCore group-based access
Inventory Integration: Configure specific items required to operate gates and bollards in framework mode.
๐ ๏ธ Troubleshooting
Common Issues
Parsing Errors in F8 Console
- Ensure files are transferred in binary mode via FTP
- Follow the installation order: ZIP โ Unpack โ Binary FTP โ Resources โ server.cfg
Gates Not Appearing
- Check server.cfg for proper resource ensure
- Verify configuration file syntax
- Confirm object model names are valid
Creation Tool Not Working
- Ensure you have proper permissions to use creation commands
- Check F8 console for error messages
- Verify command syntax and parameters
Performance Optimization
- 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
๐ก Best Practices
Configuration Tips
- 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
Security Considerations
- Permission Management - Regularly review access permissions
- Command Security - Restrict creation commands to authorized users
- Escrow Protection - Keep resource escrow enabled for security
Performance Optimization
- 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
๐ Support
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: