Exports
Lua code Trigger for Client Side
TriggerEvent("nuifix") -- if the NUI breaks.Lua code examples for Server Side for MONEY
Get your bank account number:
local bank_number = exports["sfbanking"]:getNumberBankFromSource(source)
print(bank_number) -- return false if player is offline or number if player is onlinelocal identifier = 'char1:4cf32ff23f23f23f32f23f32f32' -- example id
local bank_number = exports["sfbanking"]:getNumberBankFromId(identifier)
print(bank_number) -- return false if account not found or numberGet the amount as available in your bank account:
local bank_number = exports["sfbanking"]:getNumberBankFromSource(source)
local bank_amount = exports["sfbanking"]:getAmountBankFromNumber(bank_number)
print(bank_amount) -- return false if account not found or amount Top up your bank account with the specified amount(type: transfer from account SYSTEM):
local bank_number = 12345 -- example
local amount = 100 -- only number > 0, must be INT! NOT FLOAT!
local reason = "salary" -- can be nil
local type_log = 1 -- 1 - transfer, 2 - deposit/withdrawal, 3 - invoice payment, can be nil
local src = source -- not required, needed for logs
local result = exports["sfbanking"]:addMoneyForPlayer(bank_number, amount, reason, type_log, src)
print(result) -- return false if account not found/amount is bad or true if the transfer was successfulTake cash from your bank account with the specified amount(type: transfer to account SYSTEM):
Make a transfer from bank account to account:
Creating a bank account for a player or anything:
Bank logs:
Lua code examples for Server Side for CRYPTO
Get your crypto account number:
Get the amount as available in your crypto account:
Top up your crypto account with the specified amount and currency(type: transfer from account SYSTEM):
Take crypto from your crypto account with the specified amount and currency(type: transfer to account SYSTEM):
Make a transfer from crypto account to account:
Crypto logs:
Lua code examples for Server Side - PERMISSIONS
Granting permissions to use other bank accounts/crypto wallet:
Removing privileges to use other bank accounts/crypto wallet:
Downloading a table with data about which accounts the player has access to:
Last updated