Server
Function to get player's name in the game (not steam name)
function HRLib.bridge.getName(playerId: integer, nameType: 'firstname'|'lastname'?):
string? playerName
Parameters description
playerId - the target player's server Id
nameType - the name type, 'firstname', 'lastname' or nil for both with space between them
Return description
playerName - the player's name
Function to get player's job
function HRLib.bridge.getJob(playerId: integer, returnGrade: boolean?):
string? jobName,
integer? jobGrade
Parameters description
playerId - the target player's server Id
returnGrade - sets whether or not return grade of the player in its current job
Return description
jobName - the current player job's name
jobGrade - the current player job's grade (only available if returnGrade is true)
Function to get player's money balance
Parameters description
playerId - the target player's server Id
account - the account to focus on getting the balance of
Return description
moneyAmount - the amount of money in the specified account
Function to set player's job and grade
Parameters description
playerId - the target player's server Id
Function to set player's money balance in a specific account
Parameters description
playerId - the target player's server Id
account - the account to focus on setting the money balance
amount - the amount to set
Function to remove money from the current balance in the specified account
Parameters description
playerId - the target player's server Id
account - the account to focus on removing money of
amount - the amount to remove from the balance
Function to give money to target player's account
Parameters description
playerId - the target player's server Id
account - the account to focus on giving the money to
amount - the amount to add to the account's balance
Function to check if a specific job name exists in the framework's jobs list
Parameters description
jobName - the name of the job
jobGrade - specific job grade for the chosen jobName if you want to check if this specific
grade exists for the job
Last updated