Commands and exports
Commands
| Command | Who | What it does |
|---|---|---|
/setvip [id] | Admins, console | Give VIP status to a player. Saved in the database |
/removevip [id] | Admins, console | Remove VIP status |
/checkmyvip | Players | Show whether you are VIP |
Command names can be changed in Config.Commands. /setvip is the command kyoRoulette runs for its VIP prize (Config.VipCommand = 'setvip %s').
Server exports
IsVip
local vip = exports.kyoVipShop:IsVip(source)
Returns true if the player is VIP.
SetVip
exports.kyoVipShop:SetVip(source, true) -- give VIP
exports.kyoVipShop:SetVip(source, false) -- remove VIP
Returns true if it was saved.
The export name uses the resource folder name. If you rename the folder, use the new name.