Installation Guide
Complete guide to installing and configuring Nights Software resources on your FiveM server.
Table of contents
π Prerequisites
Before installing any Nights Software resource, ensure you have:
- β FiveM Server - Running and accessible
- β Recommended Gamebuild: 3323
- β Recommended Artifacts: 17000
- β FTP Access - File transfer protocol, in binary transfer type mode, access to your server
- β Server.cfg Access - Ability to modify server configuration
- β Basic FiveM Knowledge - Understanding of resource management
- β Discord Bot - For Discord-related resources (see Discord API)
π Standard Installation Process
Step 1: Purchase & Download
- Purchase the resource from Nights Software Store
- Download paid resources via CFX Portal
- Download free resources via the received e-mail (from Tebex) containing a download link.
Note: Resources may take a few minutes to appear in the CFX Portal after purchase.
Step 2: File Preparation
- Download the ZIP file to your local machine
- Extract the ZIP file to a temporary folder
- Verify all files are present (config, fxmanifest.lua, etc.)
Step 3: File Transfer
Critical: Always use binary transfer mode to prevent file corruption!
- Open your FTP client (FileZilla, WinSCP, etc.)
- Set transfer mode to Binary
- Navigate to your serverβs
resources
folder - Upload the entire resource folder
- Verify file permissions (usually 644 for files, 755 for folders)
Step 4: Server Configuration
- Open your
server.cfg
file - Add the ensure line:
ensure resource_name
- Save the configuration file
Step 5: Resource Configuration
- Navigate to the resourceβs
config
folder - Open
config.lua
in a text editor - Configure according to the resourceβs documentation
- Save the configuration file
Step 6: Server Restart
- Restart your FiveM server
- Check the txAdmin (server) console for any errors
- Check F8 console for any errors
- Verify the resource is running properly
π§ Configuration Best Practices
File Transfer Protocol
FTP Client | Binary Mode Setting |
---|---|
FileZilla | Transfer β Transfer Type β Binary |
WinSCP | Session β Preferences β Transfer β Binary |
Server.cfg Organization
Organize your server.cfg
for better maintainability:
# ========================================
# CORE RESOURCES
# ========================================
ensure oxmysql
ensure night_discordapi
# ========================================
# GAMEPLAY RESOURCES
# ========================================
ensure night_natural_disasters
ensure night_objectives
ensure night_garage_system
# ========================================
# UTILITY RESOURCES
# ========================================
ensure night_easy_zones
ensure night_loading_screen
Configuration File Structure
Most resources follow this or a similar structure:
resource_folder/
βββ fxmanifest.lua
βββ config/
β βββ config.lua
βββ client/
β βββ client.lua
βββ server/
β βββ server.lua
βββ nui/
βββ images/
π¨ Common Installation Issues
Parsing Errors
Symptoms: Errors in F8 console about syntax or parsing Solution:
- Ensure files were transferred in binary mode
- Check for file corruption
- Verify all files are present
Resource Not Found
Symptoms: βResource not foundβ error in server console Solution:
- Verify resource name in server.cfg matches folder name exactly
- Check resource folder is in the correct location
- Ensure fxmanifest.lua exists and is valid
Permission Errors
Symptoms: βPermission deniedβ or access errors Solution:
- Set file permissions to 644 (files) and 755 (folders)
- Check server user has read access to resource folder
- Verify ownership of files
Dependency Errors
Symptoms: βDependency not foundβ or missing exports Solution:
- Install required dependencies first
- Check load order in server.cfg
- Verify dependency versions are compatible
π Update Process
Updating Existing Resources
- Backup your current configuration
- Download the new version
- Replace files (keep your config if compatible)
- Test on a development server first
- Update production server
Configuration Migration
When updating, check for:
- New configuration options
- Deprecated settings
- Breaking changes in the changelog
π§ͺ Testing & Verification
Pre-Production Checklist
- β Resource loads without errors
- β All features work as expected
- β Configuration is properly set
- β Dependencies are satisfied
- β Performance is acceptable
- β No conflicts with other resources
Testing Environment
Recommended Setup:
- Separate development server
- Same configuration as production
- Regular testing of new features
π Support Resources
Documentation
- Resource-specific guides - Check individual resource pages
- Video tutorials - Available on YouTube
Community Support
- Discord Community - Join our Discord
- Community Tutorials - User-created installation videos
- Peer Support - Help from other server administrators
Professional Support
- Store Support - Contact through Tebex store
- Priority Support - Available for premium customers
π Security Considerations
File Permissions
- Set appropriate file permissions
- Donβt expose sensitive configuration
- Use environment variables for secrets
Configuration Security
- Keep bot tokens secure
- Donβt share configuration files publicly
- Use strong passwords for database connections
Server Security
- Keep FiveM server updated
- Use firewall rules appropriately
- Monitor server logs regularly
π Performance Optimization
Resource Management
- Load only necessary resources
- Monitor resource usage
- Optimize configuration settings
Server Optimization
- Adequate server specifications
- Proper network configuration
- Regular maintenance schedules