Skip to content
← All projects

// Personal ·

Luna Economy

The network's currency system, caching each player's backend-held balance server-side and paying out catalog-defined rewards for kills, wins, and playtime across DarkRP, TTT, Deathrun and Prop Hunt.

  • Lua
  • GMod
  • REST API

Player balances live entirely on a remote backend rather than local MySQL; a Balance class caches each player’s last-known value and applies adds/removes through the API, discarding any out-of-order response via a per-player sequence counter so a stale reply can never regress a newer balance. Rewards are granted by sending named keys like “ttt.traitor_winners” to a backend catalog that resolves the actual amount (with VIP/streak bonuses) and supports idempotency keys so a reward is never paid twice. Each gamemode has its own thin integration translating that mode’s round-end and kill events into reward grants.