Module core.plugins.tradingcards.sv_init
Trading Cards System
Module Overview
Functions
| pMeta:GiveTradingCard(value) | Function to give a player a number of trading cards. |
| cardsClaim(ply, cmd, args) | Function to claim card rewards. |
| giveCards() | Function to iterate over players and give non-afk players cards (with the cardChance in mind). |
Tables
| PLUGIN.cards | The list of card items. |
| PLUGIN.cards.Regular | Regular card items. |
| PLUGIN.cards.Foil | Foil card item names. |
| PLUGIN.rewards | List of rewards. |
| PLUGIN.rewards.Regular | Rewards for regular card sets. |
| PLUGIN.rewards.Regular.Membership | Membership reward params. |
| PLUGIN.rewards.Regular.Money | Money reward params. |
| PLUGIN.rewards.Regular.Items | Item rewards. |
| PLUGIN.rewards.Complete | Rewards for the complete set (Regular + Foil) |
Fields
| PLUGIN.foilChance | Chance out of 100, for a given card to be foil. |
| PLUGIN.cardChance | Chance out of 100 for a player to get a card drop. |
| PLUGIN.currentEvent | Name of the current event |
- pMeta:GiveTradingCard(value)
-
Function to give a player a number of trading cards.
Parameters:
- value The number of cards to give.
- cardsClaim(ply, cmd, args)
-
Function to claim card rewards.
Parameters:
- ply The player claiming cards.
- cmd The command being ran.
- args The arguments sent.
- giveCards()
- Function to iterate over players and give non-afk players cards (with the cardChance in mind).
- PLUGIN.cards
- The list of card items.
- PLUGIN.cards.Regular
-
Regular card items.
Fields:
- card_anniversary4_armory
- card_anniversary4_blackmarket
- card_anniversary4_breach
- card_anniversary4_building
- card_anniversary4_investigation
- card_anniversary4_pharmacy
- PLUGIN.cards.Foil
-
Foil card item names.
Fields:
- card_anniversary4_armory_foil
- card_anniversary4_blackmarket_foil
- card_anniversary4_breach_foil
- card_anniversary4_building_foil
- card_anniversary4_investigation_foil
- card_anniversary4_pharmacy_foil
- PLUGIN.rewards
- List of rewards.
- PLUGIN.rewards.Regular
- Rewards for regular card sets.
- PLUGIN.rewards.Regular.Membership
-
Membership reward params.
Fields:
- min
- max
- PLUGIN.rewards.Regular.Money
-
Money reward params.
Fields:
- min
- max
- PLUGIN.rewards.Regular.Items
-
Item rewards.
Fields:
- partyhat1
- partyhat2
- baseballhat2_4
- weldersmask
- flat_cap
- porkpie_4
- porkpie_3
- porkpie_0
- porkpie_6
- Shoe
- doorbell
- cityrp_uvlight
- rottenfood
- kevlar
- seed
- pot
- boxed_pocket_small
- boxed_pocket_medium
- boxed_pocket_big
- Trabbi
- phycigold
- PLUGIN.rewards.Complete
- Rewards for the complete set (Regular + Foil)