Installation Guide

Complete guide to installing and configuring Nights Software resources on your FiveM server.


Table of contents
  1. πŸ“‹ Prerequisites
  2. πŸš€ Standard Installation Process
    1. Step 1: Purchase & Download
    2. Step 2: File Preparation
    3. Step 3: File Transfer
    4. Step 4: Server Configuration
    5. Step 5: Resource Configuration
    6. Step 6: Server Restart
  3. πŸ”§ Configuration Best Practices
    1. File Transfer Protocol
    2. Server.cfg Organization
    3. Configuration File Structure
  4. 🚨 Common Installation Issues
    1. Parsing Errors
    2. Resource Not Found
    3. Permission Errors
    4. Dependency Errors
  5. πŸ”„ Update Process
    1. Updating Existing Resources
    2. Configuration Migration
  6. πŸ§ͺ Testing & Verification
    1. Pre-Production Checklist
    2. Testing Environment
  7. πŸ“ž Support Resources
    1. Documentation
    2. Community Support
    3. Professional Support
  8. πŸ”’ Security Considerations
    1. File Permissions
    2. Configuration Security
    3. Server Security
  9. πŸ“Š Performance Optimization
    1. Resource Management
    2. Server Optimization

πŸ“‹ 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

  1. Purchase the resource from Nights Software Store
  2. Download paid resources via CFX Portal
  3. 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

  1. Download the ZIP file to your local machine
  2. Extract the ZIP file to a temporary folder
  3. Verify all files are present (config, fxmanifest.lua, etc.)

Step 3: File Transfer

Critical: Always use binary transfer mode to prevent file corruption!

  1. Open your FTP client (FileZilla, WinSCP, etc.)
  2. Set transfer mode to Binary
  3. Navigate to your server’s resources folder
  4. Upload the entire resource folder
  5. Verify file permissions (usually 644 for files, 755 for folders)

Step 4: Server Configuration

  1. Open your server.cfg file
  2. Add the ensure line:
    ensure resource_name
    
  3. Save the configuration file

Step 5: Resource Configuration

  1. Navigate to the resource’s config folder
  2. Open config.lua in a text editor
  3. Configure according to the resource’s documentation
  4. Save the configuration file

Step 6: Server Restart

  1. Restart your FiveM server
  2. Check the txAdmin (server) console for any errors
  3. Check F8 console for any errors
  4. 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

  1. Backup your current configuration
  2. Download the new version
  3. Replace files (keep your config if compatible)
  4. Test on a development server first
  5. 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

Back to top

Copyright © 2025 Nights Software

Page last modified: January 27, 2025 at 03:00 PM.