Server Exports

CreateAtmBusinessOwner

Creates a new ATM business owner.

---@param data table Owner data table containing:
---   - name (string) Owner's display name
---   - identifier/citizenid (string) Unique player identifier (e.g., license:abc123)
---   - totalAtmLimit (number) Maximum number of ATMs this owner can have
---   - allowedCommissionPercentage (number, optional) Commission percentage (default: 10)
---@return boolean success Whether the operation was successful
---@return string|nil error Error message if operation failed, nil if successful
exports['g-atm-business']:CreateAtmBusinessOwner({
    name = "John Doe",
    identifier = "license:abc123def456",
    totalAtmLimit = 5,
    allowedCommissionPercentage = 15
})

GetAllAtmBusinessOwners

Retrieves all ATM business owners.

---@return table owners Array of owner objects, or empty table if none found
exports['g-atm-business']:GetAllAtmBusinessOwners()

GetAtmBusinessOwnerById

Retrieves an ATM business owner by identifier.

DeleteAtmBusinessOwner

Deletes an ATM business owner.

IsUserAlreadyAdded

Checks if a user is already added.

GetBalancesForOwners

Gets total balance for multiple owners

chevron-rightExample usage:hashtag

isOwner

Checks if a user is an owner.

CheckAndRequireService

Checks if an ATM requires servicing.

CreateAtm

Creates a new ATM.

chevron-rightExample usage:hashtag

GetAtmOwnerIdentifierById

Retrieves atm owner identifier by atm id

GetAtmsByOwnerIdentifier

Retrieves all ATMs by owner identifier.

UpdateAtmThermalPaper

Updates the thermal paper amount of an ATM.

CreateUserTransaction

Creates a user transaction.

chevron-rightExample usage:hashtag

GetTransactionDataById

Retrieves transaction data by ID.

DepositOwnerAccount

Deposits money into an owner account.

WithdrawOwnerAccount

Withdraws money from an owner account

Last updated