Scrap Mechanic

Scrap Mechanic

Not enough ratings
Economy Mod
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.973 MB
20 Jun, 2020 @ 5:28pm
1 Change Note ( view )

Subscribe to download
Economy Mod

In 1 collection by Xesau
X's Gameplay Additions
5 items
Description
This mod adds basic economy functionality to your world. Place the Economy Installer part in the world to load the commands.

You need to have installed sm.interop manually for this mod to work.

Recommended: Use the Player IDs Command mod to get player IDs.

Commands
Get your current balance:
/balance

Transfer money to another player:
/transfer <playerId> <amount>

Admin commands
The following commands can only be run by the host, or players with the permission xesau/economy-mod:admin

Set the balance of a player:
/set-balance <playerId> <amount>

Get a player's balance:
/balance <playerId>

Set the currency symbol to something different:
/economy-config currencysymbol <symbol>

Set the default amount of money players start out with:
/economy-config defaultbalance <amount>

Enable or disable whether negative balance is allowed
/economy-config allownegativebalance <true/false>

API
This mod also has an API. You can access the EconomyManager service using
local economyManager = sm.interop.services.get('xesau/economy-mod:EconomyManager')
Functions:
economyManager:getBalance(player) economyManager:setBalance(player, amount) economyManager:canWithdraw(player, amount) economyManager:withdraw(player, amount) economyManager:deposit(player, amount)
(Player parameter can be a Player userdata or a player's ID number)
Popular Discussions View All (1)
0
12 Apr, 2024 @ 2:14pm
error
Lotax
4 Comments
Henrok 4 May, 2024 @ 10:26am 
Buah.

Best regards
~Henrok
Lotax 12 Apr, 2024 @ 2:15pm 
Hello, is it normal that all mods that work with SM.Interop say a mistake to about of SM.Interop?
rhoman5 9 Jun, 2023 @ 7:55pm 
epic
Natejoestev 14 Nov, 2021 @ 12:12pm 
nice