Exports & API

Server-side exports for integrating Pulsar Banking with other resources.


Server Exports

GetAccountBalance

Returns the total balance for a player's accounts.

local balance = exports['pulsar-banking']:GetAccountBalance(citizenid, accountType)
Parameter
Type
Required
Description

citizenid

string

Yes

Player's citizen ID

accountType

string

No

Account type ('checking', 'savings'). Defaults to 'checking'

Returns: number — Total balance

Example:

-- Get a player's checking balance
local balance = exports['pulsar-banking']:GetAccountBalance('ABC12345')
print('Balance: $' .. balance)

-- Get savings balance
local savings = exports['pulsar-banking']:GetAccountBalance('ABC12345', 'savings')

GetPlayerAccounts

Returns all accounts belonging to a player.

Parameter
Type
Required
Description

citizenid

string

Yes

Player's citizen ID

Returns: table — Array of account objects

Example:


Integration Examples

Check balance before purchase

Display all player accounts

Last updated