Page cover

🎰Lottery

Documentation relating to the lumen_lottery

Installation

  • Works with RedEM:RParrow-up-right / VORParrow-up-right / RSGarrow-up-right. Be sure you installed one of them before to use this script.

  • You need to have 2 utility scripts. These will be provided by discord

    • redemrp_menu_base

    • uiprompt

  • Drag and drop the resource in your resources folder

    • lumen_lottery

  • Add this ensure in your server.cfg below under all utility scripts (uiprompt,xsound etc)

    • ensure lumen_lottery

  • Edit the config.lua to make sure to customize the code

If you have any questions, please contact our lumen works discord.

Framework

Config.framework = "redemrp"

You can set the framework you need. The available options are "redemrp" or "vorp".

Language

Vendor Configuration

Here you can add as many vendors as you want and you can customize it

  • coords: Coordinates to open the lottery manager

  • createNpc: True if you want the code to create a ped npc

  • model: Ped model

  • heading: Ped heading

  • createblip: True if you want a blip to be shown on the map

  • blipName: Name of the blip

  • blipHash: hash for blip

  • sellLottery: Specifies which lottery categories this manager can sell (more information about the categories in the "Loterry Category Configuration" section.

Notifications

You can set your custom notification system here, by default redemrp is added

Lottery Category Configuration

Here you can create as many lottery categories as you need.

  • name: Lottery category name

  • priceCoupon: Price of each coupon

  • numbersTotalLottery: Maximum number of coupons for each category

  • drawDay: Here you can set the date and time of the prize distribution

    • day: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

    • hour: 00 to 23

  • maxCoupon: Maximum number of coupons allowed per player and per category

  • reward: Specify the award for the category.

    • money: Money added, in case you do not want to give money as a prize, add the value 0

    • items: Add an object as a prize.

Others params

Last updated