Qadr_scratchcard

qadr_scratchcard

Description

After scraping the card, you can close it with ESC.

Add this item to your inventory config

    ["scratchcard"] = {
        label = "scratchcard",
        description = "scratchcard",
        weight = 0.1,
        canBeDropped = true,
        canBeUsed = true,
        requireLvl = 0,
        limit = 20,
        imgsrc = "items/scratchcard.png",
        type = "item_standard",
    }

You can change prize and chance in the config file.

    qadr_scratchcard = {
        prizes = {
            min = 0,
            max = 10000,
        },
        chance = 30, -- %30 chance to get a prize
    }

Requirement

Redemrp inventory

If you want the inventory to close after using the item, check this pull request.

Installation

Download the repo and put it in your resource folder. Folder name must be qadr_scratchcard.

Video

1 Like

Converted this to work with VORP but it is done alittle different.

tried to convert this to vorp but failed, did you upload your remake?