Exports (Server Side)
Server-sided exports
AddReputation
Adds reputation for the given player and job.
exports["bd-lvlsystem"]:AddReputation(citizenid, job, rep)
citizenid (string):
The players identifierjob (string):
The job that rep will be added torep (number):
The amount of reputation to add
RemoveReputation
Removes reputation for the given player and job.
exports["bd-lvlsystem"]:RemoveReputation(citizenid, job, rep)
citizenid (string):
The players identifierjob (string):
The job that rep will be removed fromrep (number):
The amount of reputation to remove
GetReputation
Returns the players reputation for the given job.
local rep = exports["bd-lvlsystem"]:GetReputation(citizenid, job)
citizenid (string):
The players identifierjob (string):
The job you want to get the reputation for
GetPlayerLevel
Returns the players level for the given job.
local level = exports["bd-lvlsystem"]:GetPlayerLevel(citizenid, job)
citizenid (string):
The players identifierjob (string):
The job you want to get the level for
GetPlayerReputationAndLevel
Returns the player reputation and level.
local rep, level = exports["bd-lvlsystem"]:GetPlayerReputationAndLevel(citizenid, job)
citizenid (string):
The players identifierjob (string):
The job you want to get the reputation, level for