Config

Lottery System Configuration

This document describes the complete configuration of the lottery system for your FiveM server.

General Configuration

Base Parameters

  • Locale: "en" - System language

  • DrawMode: "job" - Draw mode (job or automatic)

Ticket Parameters

  • TicketItem: "lottery_ticket" - Lottery ticket item name in the database

  • MaxTicketsPerPlayer: 5 - Maximum number of tickets a player can purchase

  • TicketPrice: 100 - Price of a lottery ticket

Ticket Seller

The system includes an NPC ticket seller configured as follows:

Seller Parameters

  • Position: vec3(-1840.338501, -1234.734009, 12.002930)

  • Heading: 180.0°

  • Model: a_m_m_business_01

  • Name: "Lottery vendor"

  • Auto-hide: Hides when a player with lottery job is online

Map Blip

  • Sprite: 500 (lottery icon)

  • Color: 46 (green)

  • Scale: 0.8

  • Label: "Lottery vendor"

Automatic Draw

Scheduling

  • Hour: 20 (8:00 PM)

  • Minute: 0

  • Interval: Every 24 hours (intervalHours)

  • Minimum Reward: $5,000

  • Maximum Reward: $50,000

Job Configuration

Job Settings

  • Job Name: "lottery"

  • Computer Item: "lottery_computer" - Allows employees to manage the lottery

Manual Draw (Job)

  • Minimum Amount: $1,000

  • Maximum Amount: $100,000

Draw Rules

Winners

  • Maximum Winners: 1 per draw

No Winner Possibility

  • Enabled: false (disabled)

  • Percentage: 20% (if enabled)

User Interface

Visual Customization

  • Display Time: 8,000ms (8 seconds)

  • Logo: Custom Fantasia image URL

  • Title: "LOTTERY"

  • Background Color: #1a1a2e (dark navy)

  • Accent Color: #16213e (navy blue)

Discord Integration

The system is connected to Discord via webhook for draw notifications and logging.

  • Webhook URL: Configured for Discord notifications

Crafting System

Artisan NPC

  • Enabled: true

  • Position: vec3(-1850.338501, -1234.734009, 12.002930)

  • Heading: 180.0°

  • Model: a_m_m_eastsa_02

  • Name: "Artisan Lottery"

  • HasKrCraft: true - Integration with kr_craft_v2 system

Map Blip (Artisan)

  • Sprite: 402 (crafting icon)

  • Color: 3 (green)

  • Scale: 0.8

  • Label: "Artisan Lottery"

Craft Materials

  • Paper Item: "paper" - Required for crafting

  • Ink Item: "ink" - Required for crafting

Shop System

Shop Configuration

  • Enabled: true

  • Available Items:

    • Paper: $5 each

    • Ink: $10 each

Job Permissions

Access Levels

  • Money Withdrawal: Boss, Manager

  • Shop Access: Boss, Manager, Employee


Note: This configuration provides a complete lottery system with automatic seller, scheduled draws, crafting system, shop integration, and custom interface. The system supports both automatic and job-controlled lottery draws with Discord integration for notifications.

Last updated