Server
getName
Function to get player's name in the game (not steam name)
Parameters description
playerId
- focused player's server IdnameType
- the name type,'firstname'
,'lastname'
ornil
for both with space between them
Return description
playerName
- the player's name
getJob
Function to get player's job
Parameters description
playerId
- focused player's server IdreturnGrade
- sets whether or not return grade of the player in its current job
Return description
jobName
- the current player job's namejobGrade
- the current player job's grade (only available if returnGrade is true)
getMoney
Function to get player's money balance
Parameters description
playerId
- focused player's server Idaccount
- the account to focus on getting the balance of
Return description
moneyAmount
- the amount of money in the specified account
setJob
Function to set player's job and grade
Parameters description
playerId
- focused player's server IdjobName
- the job namejobGrade
- the job grade
setMoney
Function to set player's money balance in a specific account
Parameters description
playerId
- focused player's server Idaccount
- the account to focus on setting the money balanceamount
- the amount to set
removeMoney
Function to remove money from the current balance in the specified account
Parameters description
playerId
- focused player's server Idaccount
- the account to focus on removing money ofamount
- the amount to remove from the balance
Last updated