Server Exports

CreateReputation

Use this to create a new reputation for a player.

exports['m-Reputation']:CreateReputation(citizenID, reputationName, reputationLabel, experience, level)

Example:

exports['m-Reputation']:CreateReputation("WRN57371", "carwash", "Carwash", 0, 1)

AddReputationXP

Use this to add experience points to a player's reputation.

exports['m-Reputation']:AddReputationXP(citizenID, reputationName, experience)

Example:

exports['m-Reputation']:AddReputationXP("WRN57371", "carwash", 5)

GetUserReputationXP

Use this to get the current experience points of a player's reputation.

exports['m-Reputation']:GetUserReputationXP(citizenID, reputationName, cb)

Example:

exports['m-Reputation']:GetUserReputationXP("WRN57371", "carwash", function(xp)
   if xp then
      print('Carwash XP: ' .. xp)
   else
      print('Reputation not found.')
   end
end)

Last updated