wasvendel scripts

wasvendel_luckycases

Lucky case / coin system.

Requirements

  • VORP (or compatible RedM core)
  • oxmysql

Installation

  1. Unzip wasvendel_luckycases.
  2. Put the wasvendel_luckycases folder into your server resources directory.
  3. Import install.sql into your database.
  4. Add the resource to server.cfg after your framework core.
ensure oxmysql
ensure your_core
ensure wasvendel_luckycases

Database

Import the install.sql file.

Configuration

Edit:

  • config.lua
  • sv_config.lua

Commands

Command Source Usage
/case Config.Settings.cmd (if cmdenable) Case UI
/luckycoin Config.Settings.cmdLuckycoin (if CoinsAdmin.enable) /luckycoin add/remove/set/check [playerId] [amount]

Exports

Server (runtime exports)

Export Signature
GetCoins (src)
GetCoinsByIdentifier (identifier, charid)
AddCoins (src, amount)
AddCoinsByIdentifier (identifier, charid, amount)
RemoveCoins (src, amount)
RemoveCoinsByIdentifier (identifier, charid, amount)
SetCoins (src, amount)
SetCoinsByIdentifier (identifier, charid, amount)

New documentation page

The file is saved to the markdown/ folder. Editing is localhost-only.