Frequently Used Functions
Last updated
// Player reward in Coins (soft currency) and event points
int coinReward = 1000;
int eventPoint = 1;
ClaimRewardSystem.ClaimCoinReward(coinReward, eventPoint)// Player reward in Tokens (hard currency) and event points. Players who have VIP status can call.
int tokenReward = 100;
int eventPoint = 1;
ClaimRewardSystem.ClaimTokenReward(tokenReward, eventPoint)// Player receive rewards in tokens if they wear skins that generate income in tokens. VIP only
ClaimRewardSystem.ClaimSkinProfit()// Get the number of items by itemID (string)
int itemAmount = UserInventory.GetItemAmount(itemID);
// Get the amount of currency by VirtualCurrencyID
int currencyAmount = UserInventory.GetVirtualCurrencyAmount(VirtualCurrencyID.CO);
// Get the number of tickets by SpinTicketType
int ticketAmount = UserInventory.GetSpinTicketAmount(SpinTicketType.Standard);
// Get the number of key fragments based on ChestKeyFragmentType. To open the chest, you need to collect all 3 key fragments.
int commonKey1 = UserInventory.GetChestKeyFragmentAmount(ChestKeyFragmentType.Common_1);
// Get a bool value indicating whether the user is a VIP.
bool isVip = UserInventory.HasVIPStatus
// etc.// Returns the player's inventory
IGSUserData.UserInventory
// Returns player currencies
IGSUserData.Currency
// etc.// Saving data by key
UserDataService.UpdateCustomUserData("Key1", "Key Value");
// Getting data by key
string value = UserDataService.GetCachedCustomUserData("Key1");