-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
58 lines (45 loc) · 2.92 KB
/
Copy pathconfig.lua
File metadata and controls
58 lines (45 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Config = {}
-- ─── Admin ───────────────────────────────────────────────────────────────────
-- Permission groups that can start/end/manage raffles
Config.AdminGroups = { 'admin', 'god' }
-- Minimum online players required to start a raffle
Config.MinPlayers = 2
-- ─── Timing ──────────────────────────────────────────────────────────────────
-- How long the winner NUI screen stays on screen (milliseconds)
Config.WinnerDisplayTime = 15000
-- How often to auto-broadcast a reminder while a raffle is active (milliseconds)
Config.ReminderInterval = 1200000 -- 20 minutes
-- Maximum number of past raffles kept in history (oldest removed when exceeded)
Config.MaxHistory = 20
-- How many raffles a winner must sit out before they can win again.
-- Set to 0 to disable cooldowns entirely.
-- Cooldown is bypassed automatically if there aren't enough non-cooldown
-- players to hold a draw (so it never blocks the raffle from running).
Config.WinnerCooldownRaffles = 2
-- ─── Prizes ──────────────────────────────────────────────────────────────────
-- Garage ID to deposit prize vehicles into (must match a key in jg-advancedgarages Config.GarageLocations)
Config.DefaultGarage = 'Legion Square'
-- Default account for cash prizes ('bank' or 'cash')
Config.CashAccount = 'bank'
-- Placeholder hint shown in the custom prize text field
Config.DefaultPrizeHint = 'e.g. Mystery Box, Custom Plate, 1-Month VIP...'
-- Quick-select preset prizes shown in the Custom prize dialog
-- These are editable at runtime via /rafflemanage → Preset Prizes
Config.PresetPrizes = {
'🎁 Mystery Box',
'💰 $50,000 In-Game Cash',
'🏎️ Custom Vehicle',
'👑 1-Month VIP Membership',
'🎨 Custom License Plate',
}
-- ─── Session Cooldown ────────────────────────────────────────────────────────
-- How many raffles a winner must sit out before they can win again (in-memory,
-- resets on server restart). Set to 0 to disable.
Config.WinnerCooldownRaffles = 2
-- ─── Persistent Win Limit ────────────────────────────────────────────────────
-- Requires the raffle_wins table — run install.sql once on your database.
-- Maximum wins a single player is allowed within the rolling window below.
-- Set to 0 to disable.
Config.MaxWinsPerPeriod = 2
-- Rolling window in days for the persistent win limit.
Config.WinPeriodDays = 7