scmJS docs

Set Resources

Sets the player's ore, gas, or both, adds to it or takes from it. Blizzard's melee maps give every player their starting minerals with it.

Action 26 · Set Resources(Player, Modifier, Amount, Resource);

Argument Takes Stored in the action
Player a player or group bytes 16–19
Modifier Set To, Add or Subtract byte 27
Amount a whole number, 0 to 4,294,967,295 bytes 20–23
Resource ore, gas, or ore and gas bytes 24–25
Set Resources("Current Player", Set To, 50, ore);