https://github.com/kajdev/kaj_eco_lib
An Economy mod for Beam-MP that uses Server --> Client events.
https://github.com/kajdev/kaj_eco_lib
Last synced: 8 months ago
JSON representation
An Economy mod for Beam-MP that uses Server --> Client events.
- Host: GitHub
- URL: https://github.com/kajdev/kaj_eco_lib
- Owner: KAJdev
- License: gpl-3.0
- Created: 2020-08-29T06:38:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T12:50:17.000Z (over 1 year ago)
- Last Synced: 2025-05-04T07:46:12.584Z (8 months ago)
- Language: Lua
- Size: 1.24 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Kaj's Economy library.
- provides rudimentary balances for players
- stores associated monetary values on the server, safe from cheating.
- easy way to set/add/remove money from each player.
- automatically sends new money value to client, and saves it on the server.
## Installation
- download the client side mod from the releases page, as well as the server side mod.
- put the server side mod into Resources/Server/ Directory on your Server. (edit config if needed)
- put the client side mod zip archive into Resources/Client/ Directory on your Server. (if you are OK with only being able to use commands you can skip the client side mod)
- restart your server.
## Plugin events
### changeMoney (\, \)
> usage: TriggerGlobalEvent("changeMoney", \, \)
trigger this event to change the value of money for a specific player. This will not save. You must trigger saveMoney in order to save to disk and send to clients
### loadMoney ()
> usage: TriggerGlobalEvent("loadMoney")
trigger to load money from disk
### saveMoney ()
> usage: TriggerGlobalEvent("saveMoney")
trigger to save money to disk. If the clientModInstalled value of the config is set to true it will update all clients. Be careful as this could crash players that don't have the lastest version or do not have th mod loaded. A system to prevent this, and only send to clients who have the mod, is in the works.