SERVER EXPORTS

Wallet_GetAccountNumberBySrc

Retrieves the unique wallet account number associated with a player's server ID.

local accountId = exports["17mov_Phone"]:Wallet_GetAccountNumberBySrc(src)

Returns:

  • string / nil accountId: The wallet account number or nil if not found.

Arguments:

Argument
Type
Optional
Explanation

src

number

โŒ

Player Server ID (source)


Wallet_GetAccountNumberByNumber

Retrieves the unique wallet account number associated with a specific phone number.

local accountId = exports["17mov_Phone"]:Wallet_GetAccountNumberByNumber(number)

Returns:

  • string / nil accountId: The wallet account number or nil if not found.

Arguments:

Argument
Type
Optional
Explanation

number

string

โŒ

Target phone number


Wallet_AddTransaction

Creates a new transaction between two wallet accounts and synchronizes the data with the active players' phones.

Arguments:

Argument
Type
Optional
Explanation

fromAccount

string

โŒ

Sender's wallet account number

toAccount

string

โŒ

Receiver's wallet account number

fromName

string

โŒ

Name displayed as the sender

toName

string

โŒ

Name displayed as the receiver

description

string

โŒ

Transaction label or description

amount

number

โŒ

The monetary value of the transaction

Last updated