Overview
Access viaCrypto (server-side only).
Coin Management
Create and manage coin types
Wallets
Player crypto holdings
Exchange
Buy, sell, and transfer crypto
Crypto balances are stored in the character’s data as
Crypto[ACRONYM] = amount. Players access crypto through a CryptoWallet ID linked to their character.Coin Management
Crypto.Coin:Create
Register or update a cryptocurrency type.Full coin name (e.g., “Bitcoin”)
Short identifier (e.g., “BTC”)
Price per unit in dollars
Whether players can buy this coin
Whether players can sell this coin
Crypto.Coin:Get
Get data for a specific coin.Coin data or
nil if not registeredCrypto.Coin:GetAll
Get all registered coins.Array of all registered coin data
Wallet Operations
Crypto:Has
Check if a player owns a minimum amount of a coin.Player server ID
Coin acronym (e.g., “BTC”)
Minimum amount to check
true if player owns >= amountExchange Operations
Crypto.Exchange:IsListed
Check if a coin is tradeable on the exchange.Crypto.Exchange:Buy
Purchase cryptocurrency using the player’s bank account.Coin acronym
Character State ID (SID) of the buyer
Amount of coin to buy
true if purchase was successfulCrypto.Exchange:Sell
Sell cryptocurrency back for bank balance.Coin acronym (must be sellable)
Character State ID (SID) of the seller
Amount of coin to sell
New balance or
false if failedCrypto.Exchange:Add
Add cryptocurrency directly to a wallet (no bank charge).Coin acronym
CryptoWallet ID (from
char:GetData('CryptoWallet'))Amount to add
Skip phone notification
Crypto.Exchange:Remove
Remove cryptocurrency from a wallet.true if successfully removedCrypto.Exchange:Transfer
Transfer cryptocurrency between two wallets.Coin acronym
Sender’s State ID (SID)
Recipient’s CryptoWallet ID
Amount to transfer
true if transfer was successfulNext Steps
Finance - Banking
Bank account operations
Finance - Payments
Bills and fines
Characters API
Character data access