Economy Mod
Добавить в игру через Steam
Нажмите «Подписаться»
На странице Steam войдите в аккаунт, если потребуется.
Подписаться
О материале
«Economy Mod» — материал мастерской Scrap Mechanic. Постройки, новые блоки, детали и игровые режимы. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
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
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
Get a player's balance: /balance
Set the currency symbol to something different: /economy-config currencysymbol
Set the default amount of money players start out with: /economy-config defaultbalance
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)
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.