# Player Add Reward

FlagsNative | Action

Adds the selected reward to the player. Note: You cannot add a reward with a license associated.

# Arguments

  • int — Player
  • string — Reward

Returns — void

native void PlayerAddReward(int inPlayer, string inReward);

Category: Player / Player Settings

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L7718
PlayerAddReward(lp_player, lv_rewardStringIDCombine)
// L7758
PlayerAddReward(lp_player, (lv_defaultvoicepack))
// L30050
PlayerAddReward(1, lv_rewardStringIDCombine)