Private Key
Wallets moved by whoever holds the key.
coe_cryptoNoxcoin — Cryptocurrency
Private-key wallets, public ledger, exchange and mining
coe_corecoe_databasecoe_logging
coe_crypto
18 exports · 0 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
The in-game cryptocurrency (Noxcoin, NOX): wallets with a public address and private key, a network with transfers and fees, an exchange with a floating price and mining. It is the DeepWeb currency: market, services and contracts are paid in it, with escrow for the Deep Market. The key can be written on paper, saved to a USB drive or imported.
The server stores only the key hash: whoever holds the key moves the funds, and losing the key means losing the wallet.
Wallets moved by whoever holds the key.
Buy and sell with spread and floating price.
Round-based issuance with a configurable cap.
Custody for the DeepWeb market.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Operates strictly within layers L1–L3 (domain, HAL, and server-authoritative application logic). Visual interactions and management flows are delegated to centralized ecosystem apps (coe_ui / coe_tablet), guaranteeing 0.00 ms idle client overhead in FiveM DX12.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_crypto']:IsReady()
→ boolean
Returns whether the network is ready (migrations, exchange reserve, and price feed loaded).
No parameters.
local result = exports['coe_crypto']:IsReady()exports['coe_crypto']:Price()
→ integer
Returns the exchange's current price in dollars per whole coin.
No parameters.
local result = exports['coe_crypto']:Price()exports['coe_crypto']:Balance(address)
→ integer|nil
Returns the balance for an address. Read access is unrestricted.
| Parameter | Type |
|---|---|
address | string |
local result = exports['coe_crypto']:Balance(address)exports['coe_crypto']:IsAddress(address)
→ boolean
Checks whether the address format is valid; it does not check whether the address exists.
| Parameter | Type |
|---|---|
address | string |
local result = exports['coe_crypto']:IsAddress(address)exports['coe_crypto']:Format(units)
→ string
Formats units with the currency symbol (for example, 1.5000 NOX).
| Parameter | Type |
|---|---|
units | integer |
local result = exports['coe_crypto']:Format(units)exports['coe_crypto']:MintMining(entries)
→ CoeCryptoMintResult
Issues one mining round. Restricted to Mining.Callers, at most once per Mining.TickMinutes.
| Parameter | Type |
|---|---|
entries | { |
local result = exports['coe_crypto']:MintMining(entries)exports['coe_crypto']:ComputerCall(playerId, deviceKey, action, payload)
→ table
Handles the Crypto app on a coe_deepweb computer. Restricted to ComputerHosts; deviceKey is the device key (laptop:<serial>, etc.).
| Parameter | Type |
|---|---|
playerId | integer |
deviceKey | string |
action | string |
payload | table|nil |
local result = exports['coe_crypto']:ComputerCall(playerId, deviceKey, action, payload)exports['coe_crypto']:HeldWallets(playerId, deviceKey)
→ table|nil
Returns wallets whose keys are available on deviceKey and in the character's inventory, including balances. Restricted to Escrow.Callers.
| Parameter | Type |
|---|---|
playerId | integer |
deviceKey | string |
local result = exports['coe_crypto']:HeldWallets(playerId, deviceKey)exports['coe_crypto']:EscrowLock(playerId, deviceKey, from, amount, memo)
→ table
Locks amount plus the network fee from wallet from in marketplace escrow. The key must be available. Restricted to Escrow.Callers.
| Parameter | Type |
|---|---|
playerId | integer |
deviceKey | string |
from | string |
amount | integer |
memo | string|nil |
local result = exports['coe_crypto']:EscrowLock(playerId, deviceKey, from, amount, memo)exports['coe_crypto']:EscrowRelease(to, amount, memo)
→ table
Releases amount from escrow to to without a network fee. Restricted to Escrow.Callers.
| Parameter | Type |
|---|---|
to | string |
amount | integer |
memo | string|nil |
local result = exports['coe_crypto']:EscrowRelease(to, amount, memo)exports['coe_crypto']:ReserveAddress()
→ string
Returns the exchange reserve address (receives marketplace fees and payments to NPC vendors).
No parameters.
local result = exports['coe_crypto']:ReserveAddress()exports['coe_crypto']:AdminOverview()
→ table
Admin overview of settings, live price, network summary, top wallets, and recent transactions. Restricted to coe_admin.
No parameters.
local result = exports['coe_crypto']:AdminOverview()exports['coe_crypto']:AdminInspect(address)
→ table
Inspects a wallet by address (balance, creator, devices holding its key, and transaction history). Restricted to coe_admin.
| Parameter | Type |
|---|---|
address | string |
local result = exports['coe_crypto']:AdminInspect(address)exports['coe_crypto']:AdminSaveSettings(raw)
→ boolean|table
Validates, persists, and applies editable coe_crypto settings in memory. Restricted to coe_admin.
| Parameter | Type |
|---|---|
raw | table |
local result = exports['coe_crypto']:AdminSaveSettings(raw)exports['coe_crypto']:AdminResetSettings()
→ boolean|table
Restores the settings from config.lua to their defaults. Restricted to coe_admin.
No parameters.
local result = exports['coe_crypto']:AdminResetSettings()exports['coe_crypto']:AdminSetPrice(price)
→ boolean|table
Immediately sets the exchange price in dollars per whole coin. Restricted to coe_admin.
| Parameter | Type |
|---|---|
price | integer |
local result = exports['coe_crypto']:AdminSetPrice(price)exports['coe_crypto']:TabletVisible(playerId, appId)
→ boolean
Controls whether the Crypto app is visible on the tablet after it has been installed.
| Parameter | Type |
|---|---|
playerId | integer |
appId | string |
local result = exports['coe_crypto']:TabletVisible(playerId, appId)exports['coe_crypto']:TabletCall(playerId, appId, action, payload)
→ table
Handles actions for the Crypto app on the tablet.
| Parameter | Type |
|---|---|
playerId | integer |
appId | string |
action | string |
payload | table|nil |
local result = exports['coe_crypto']:TabletCall(playerId, appId, action, payload)This module registers no commands: it is driven by exports and events.