Exports

This is a simple guide for how to use the JustCases exports for your custom actions

All of these exports are server-side exports and are usable only by server-side scripts

AddCoin

You can add gold coins or silver coins directly from your other scripts as rewards for player

-- player: string|number - the online player server id
-- type: string - the coins type, can be gold or silver
-- amount: number - the amount of granting coins
exports.JustCases:AddCoin(player, type, amount)

-- Example
exports.JustCases:AddCoin(1, "gold", 99999999999)

RemoveCoin

You can remove certain amount of coins from players

-- player: string|number - the online player server id
-- type: string - the coins type, can be gold or silver
-- amount: number - the amount of granting coins
exports.JustCases:RemoveCoin(player, type, amount)

-- Example
exports.JustCases:RemoveCoin(1, "gold", 99999999999)

SetCoin

You can set the player coins to a specific amount (like resetting player coins on player death)

AddCase

Add case to player inventories

CreateVoucher

You can create custom vouchers for players to redeem coins

Last updated