PAYMENTS
In-game payment handling.
Availability: Server-only
Methods
PAYMENTS.giveKR
server
Give KR (in-game currency) to a player
Signature: action(obj, num)
Parameters:
| Name | Type | Description |
|---|---|---|
player | obj | The player object to reward |
val | num | Amount of KR to give (must be positive) |
GAME.PAYMENTS.giveKR(player, 100);