Smoke Generator
A guide to install Smoke Generator for FiveM
Overview
Section titled “Overview”Spawn smoke in your hand for any purpose you can think of! Set the size and colour to your desire. This handheld smoke generator provides realistic smoke effects with full customization options.
Key Features
Section titled “Key Features”- Handheld Smoke Generation - Spawn smoke directly in your hand
- Configurable Commands - Customize commands to your liking
- Color & Size Control - Decide the colour and size of smoke
- Optional Item Usage - Framework integration for item-based usage
- Animated Effects - Realistic smoke animations
- Synchronized - Smoke effects synchronized across all players
- Framework Compatibility - Works with QBCore, ESX, and Standalone
- Escrow Protection - Secure resource protection
Installation Tutorial
Section titled “Installation Tutorial”Watch the installation tutorial:
Important Pre-Installation Notes
Section titled “Important Pre-Installation Notes”System Requirements & Compatibility
Section titled “System Requirements & Compatibility”Framework Compatibility
Section titled “Framework Compatibility”- Standalone: Works independently without any framework
- ESX: Compatible with ESX framework
- QBCore: Compatible with QBCore framework
OneSync Compatibility
Section titled “OneSync Compatibility”- OneSync Legacy: Fully tested and compatible
- OneSync Infinity: Fully tested and compatible
Dependencies
Section titled “Dependencies”- Discord API - Required for permissions (optional item usage)
- Framework Integration - Optional item usage for frameworks
Installation Process
Section titled “Installation Process”Step 1: Download Resource
Section titled “Step 1: Download Resource”Download this resource via CFX Portal Assets after purchasing.
Step 2: Install Resource
Section titled “Step 2: Install Resource”- Extract the ZIP package to your local machine
- Transfer files to your server’s resources folder
- Ensure the folder is named
night_handheld_smoke_gen(do not rename)
Step 3: Server Configuration
Section titled “Step 3: Server Configuration”Add the resource to your server.cfg:
ensure night_handheld_smoke_genStep 4: Configure Settings
Section titled “Step 4: Configure Settings”- Open
/config/config.luain your preferred editor - Configure all settings to your liking
- Test the resource functionality
Configuration Setup
Section titled “Configuration Setup”Required Tools
Section titled “Required Tools”Configuration Files
Section titled “Configuration Files”| File | Purpose |
|---|---|
night_handheld_smoke_gen/config/config.lua |
Main configuration settings |
night_handheld_smoke_gen/client/c_functions.lua |
Client-side functions |
night_handheld_smoke_gen/server/s_functions.lua |
Server-side functions |
Configuration Process
Section titled “Configuration Process”- Open VS Code and navigate to the config files
- Read thoroughly - each line has explanatory comments
- Configure settings - customize commands, colors, sizes, and permissions
- Test frequently - use F8 console for error checking
How It Works
Section titled “How It Works”Smoke Generation
Section titled “Smoke Generation”- Handheld Smoke - Spawn smoke directly in your hand
- Customizable Effects - Set size and color to your desire
- Realistic Animations - Authentic smoke generation animations
- Synchronized Effects - Smoke visible to all players on server
Configuration Options
Section titled “Configuration Options”- Command Configuration - Customize commands for smoke generation
- Color Control - Choose from various smoke colors
- Size Control - Adjust smoke size and density
- Framework Integration - Optional item usage for ESX/QBCore
Permission System
Section titled “Permission System”- Discord API Integration - Utilize Discord roles for permissions
- Optional Item Usage - Framework-based item requirements
- Access Control - Configure who can use smoke generators
User Experience
Section titled “User Experience”- Easy Activation - Simple commands or item usage
- Visual Feedback - Clear smoke generation effects
- Flexible Usage - Use for any purpose you can think of
- Seamless Integration - Works naturally with FiveM gameplay
Integration & Compatibility
Section titled “Integration & Compatibility”Framework Support
Section titled “Framework Support”- Standalone - Works independently without framework dependencies
- ESX - Compatible with ESX framework integration
- QBCore - Compatible with QBCore framework integration
Discord API Integration
Section titled “Discord API Integration”- Permission System - Utilize Discord roles for access control
- Role-Based Access - Configure permissions through Discord API
- Easy Setup - Simple integration with existing Discord setup
Server Integration
Section titled “Server Integration”- Universal Compatibility - Works with any FiveM server setup
- Performance Optimized - Efficient smoke effect management
- Easy Integration - Simple setup and configuration
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Debugging Tips
Section titled “Debugging Tips”- Check F8 Console - Look for any error messages
- Test Commands - Verify smoke generation commands work
- Verify Configuration - Check all config settings are correct
- Check Discord API - Ensure Discord API is properly configured
Best Practices
Section titled “Best Practices”Smoke Configuration
Section titled “Smoke Configuration”- Color Selection - Choose appropriate smoke colors for your server
- Size Management - Configure reasonable smoke sizes
- Command Setup - Set up intuitive commands for users
- Permission Management - Configure appropriate access controls
Performance Optimization
Section titled “Performance Optimization”- Smoke Limits - Monitor smoke effect count for performance
- Synchronization - Ensure smoke effects are properly synchronized
- Framework Integration - Optimize item usage for frameworks
- Regular Testing - Test smoke functionality regularly
User Experience
Section titled “User Experience”- Clear Instructions - Provide users with smoke generator guidelines
- Intuitive Commands - Make commands easy to remember and use
- Visual Feedback - Ensure smoke effects are clearly visible
- Help Documentation - Create server-specific usage guides
Support
Section titled “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: