Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Economy System

Lottery

Lottery Draw Script (QB)

Frameworks:
  • QBCore

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
QBCore
Version
1.0.0
Dependencies
qb-menuqb-inventory
File size
5.4 kB
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

Lottery Draw is a ticket draw system for QBCore. You can raffle gifts, vehicles, money and more on your server, and ticket sales take money out of your economy.

Features

  • Players buy numbered tickets from an NPC seller, and the data of each buyer is saved
  • The main winner and a reserve winner are picked at random
  • Admin menu with /lotterymenu; saved tickets can be deleted from the menu
  • Config for ticket price (default 500), first ticket number, reward name, ticket item name, NPC model, seller location, map blip and ticket sales on/off

Requirements

  • QBCore (qb-core)
  • qb-menu
  • qb-inventory (for the ticket item info)

Installation

  • Import lotterys.sql into your database.
  • Create an item named ticket.
  • Add the ticket info code linked in the README to the FormatItemInfo function in qb-inventory's app.js.
  • Add ensure lauren_lottery-draw to your server.cfg.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

In your downloads
  • Svdden Premium Banking FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Svdden Premium Banking

    Svdden Development

    $20.00$14.00
  • EBT / Food Stamp FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    EBT / Food Stamp

    DevM

    $9.99$6.99
  • Pixel Poster Billboard Script FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Pixel Poster Billboard Script

    Oph3Z

    $19.99$13.99
  • CodeM xDailyReward — Daily Reward System [ESX/QBCore] FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CodeM xDailyReward — Daily Reward System [ESX/QBCore]

    CodeM

    $10.99$7.69
  • FourTwenty Dynamic Market FiveM resource preview
    • QBCore
    Not for your framework

    FourTwenty Dynamic Market

    FourTwentyDev

    $10.99$7.69
  • CodeM xPawnshop — Advanced Pawn Shop Script FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CodeM xPawnshop — Advanced Pawn Shop Script

    CodeM

    $13.99$9.79
  • ARS VIP Shop FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    ARS VIP Shop

    AmiRobin

    $34.99$24.49
  • Cardealer by Zerio
    • ESX
    • QBCore, Qbox
    Not for your framework

    Zerio Cardealer

    $19.00$13.30