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.

Argument
Type
Optional
Explanation

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. Returns 0 if the player is not found.

Argument
Type
Optional
Explanation

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: true if the operation was successful.

Argument
Type
Optional
Explanation

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: true if the operation was successful.

Argument
Type
Optional
Explanation

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