SERVER EXPORTS
Get Crypto Balance (By Source)
Retrieves the current balance of a specific cryptocurrency for a player using their Server ID (Source).
local balance = exports["17mov_Phone"]:Crypto_GetBalanceById(src, coin)Returns:
number: The current balance of the specified coin.
src
number
โ
The player's server ID (source).
coin
string
โ
The name/identifier of the coin (e.g., "bitcoin").
Get Crypto Balance (By Number)
Retrieves the current balance of a specific cryptocurrency for a player using their phone number.
local balance = exports["17mov_Phone"]:Crypto_GetBalanceByNumber(number, coin)Returns:
number: The current balance of the specified coin. Returns0if the player is not found.
number
number
โ
The player's phone number.
coin
string
โ
The name/identifier of the coin (e.g., "bitcoin").
Set Crypto Balance (By Source)
Sets a specific cryptocurrency balance for a player using their Server ID (Source). This overwrites the previous balance.
local success = exports["17mov_Phone"]:Crypto_SetCoinBalanceById(src, coin, balance)Returns:
boolean:trueif the operation was successful.
src
number
โ
The player's server ID (source).
coin
string
โ
The name/identifier of the coin (e.g., "bitcoin").
balance
number
โ
The new balance to set.
Set Crypto Balance (By Number)
Sets a specific cryptocurrency balance for a player using their phone number. This overwrites the previous balance.
local success = exports["17mov_Phone"]:Crypto_SetCoinBalanceByNumber(number, coin, balance)Returns:
boolean:trueif the operation was successful.
number
number
โ
The player's phone number.
coin
string
โ
The name/identifier of the coin (e.g., "bitcoin").
balance
number
โ
The new balance to set.
Last updated