# RedStudio - red-lucky
`red-lucky` is a VORP lucky carousel script for RedM.
## Main Features
- NPC vendor + prompt interaction
- Carousel spin animation that stops on the server-selected reward
- Reward is added instantly in inventory after spin is validated
- Spin payment with either money or gold (configurable)
- Price, rewards, labels, weights, and texts configurable in `config.lua`
## Included Rewards
- `weapon_rifle_elephant`
- `weapon_rifle_springfield`
- `weapon_pistol_m1899`
- `weapon_pistol_volcanic`
- `weapon_revolver_doubleaction_gambler`
- `weapon_revolver_navy_crossover`
- `ammo_box_pistol_express`
- `ammo_box_pistol_split_point`
- `ammo_box_pistol_velocity`
- `ammo_box_repeater`
- `ammo_box_revolver_splitpoint`
- `ammo_box_rifle_explosive`
## Dependencies
- `vorp_core`
- `vorp_inventory`
- `oxmysql`
## Installation
1. Place folder in:
- `resources/[redstudio]/red-lucky`
2. Ensure dependency order in `server.cfg`:
```cfg
ensure vorp_core
ensure vorp_inventory
ensure oxmysql
ensure red-lucky
```
3. Restart resource/server:
```cfg
restart red-lucky
```
## Notes
- Items are expected to already exist in `items` table.
- Missing non-weapon reward items are auto-created in `items` on resource start.
- If new items were auto-created while server is running, restart `vorp_inventory` once to refresh its item cache.
- Currency type IDs follow VORP standard: `0 = money`, `1 = gold`.
- Reward chances are controlled via `weight` in `Config.Rewards`.
- If player cannot carry the selected reward, spin is rejected and payment is not taken.
Video : Red Lucky - RedM Script for Prizes
**Discord : **