LLRP Dynamic Raffle Giveaway System by Dynamic Scripts
qb-coreox_lib
- Drop
dynamic-raffle/into yourresources/folder. - Add
ensure dynamic-raffleto yourserver.cfg. - Adjust
config.luato your liking.
| Command | Who | Description |
|---|---|---|
/startraffle [name] |
Admin | Opens a dialog to set the prize, then starts the raffle. |
/endraffle |
Admin | Draws a random winner from all players who joined, must be in city. |
/joinraffle |
All Players | Enters the currently active raffle. |
/rafflestatus |
Admin | Shows current raffle info and entry count. |
Admin: /startraffle Summer Giveaway
→ ox_lib input dialog opens
→ Admin types prize description (or picks preset)
→ Server broadcasts raffle announcement to all players
Players: /joinraffle
→ Confirmation notification sent to player
Admin: /endraffle
→ Server filters entered players to those still online (in city)
→ Random winner selected
→ Server-wide announcement notification fires for all players
→ Winner gets a special golden overlay screen with confetti (15s auto-dismiss)
| Key | Default | Description |
|---|---|---|
Config.AdminGroups |
{ 'admin', 'god' } |
Permission groups that can run raffles |
Config.MinPlayers |
2 |
Minimum online players required to start |
Config.WinnerDisplayTime |
15000 |
Winner screen duration in milliseconds |
Config.DefaultPrizeHint |
'e.g. Mystery Box...' |
Placeholder text in the dialog |
Config.PresetPrizes |
(list) | Quick-select presets shown in the dialog |
- Players who disconnect before
/endraffleis called are automatically excluded from the draw. - The NUI winner screen uses a gold/confetti aesthetic and auto-dismisses after 15 seconds. The player can also click ✕ dismiss to close it early.
- The
/startrafflecommand accepts an optional raffle name as arguments, e.g./startraffle Summer Event.
This resource is source-available, all rights reserved under the Dynamic Scripts Proprietary License. You may view the code, but you may not redistribute, resell, or publish modified or "improved" versions.
Found a bug, fix, or improvement? Please don't fork or republish - instead DM the author at wax@waxthe.dev, and it may be incorporated (with credit).