Server
Exports - Serverside
getPlayerPin
Parameters
identifier - string
- Player Identifier
Returns
pin - number
- The PIN of the given Player
addTransaction
Parameters
receiver_iban - string
- IBAN of the Player
receiver_name - string
- Name of the Player
sender_iban - string
- IBAN of the Sender
sender_name - string
- Name of the Sender
amount - number
- Amount
reason - string
- Reason
action - string
- Can be 'deposit', 'withdraw', 'transfer'
or others
account - string
- Can be 'main', '1' or 'society'
Set account
to 'main'
for main account, '1'
for second account or 'society'
for society account
getIBANFromIdentifier
Parameters
identifier - string
- The players identifier
account - string
- 'main'
for main account, '1'
for second account or 'society'
for society account
Returns
iban - string
- The IBAN of the given Player
getAccount
Parameters
iban - string
- The IBAN of the Player
Returns
data - table <money, iban, account, identifier>
- The data of the main account
data.account
can be'main'
for main account,'1'
for second account or'society'
for society accountIf
data.account
is'1'
thendata.identifier
is thejobname
getAccountFromJob
Parameters
iban - string
- The IBAN of the Player
Returns
data - table <money, iban, account, identifier>
- The data of the main account
data.account
is always'society'
data.identifier
is always the jobname
getSocietyLabel
Parameters
jobName - string
- The Jobname
Returns
jobLabel - string
- The Label of the given name from config.lua
getInvestment
Parameters
playerData - table
- Player Data
Returns
invest - number
- The current Invesment Amount as a number
getCartridgeBursted
Parameters
playerId - string|number
- The ServerId of the player
Returns
bursted - boolean
- whether a Cartridge is Bursted or not while an ATM Robbery
Last updated