# Server Exports

## CreateReputation

Use this to create a new reputation for a player.

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

Example:

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

##

## AddReputationXP

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

```lua
exports['m-Reputation']:AddReputationXP(identifier, reputationName, experience)
```

Example:

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

##

## RemoveReputationXP

Use this to remove experience points from a player

```lua
exports['m-Reputation']:RemoveReputationXP(identifier, reputationName, experience)
```

Example:

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

##

## GetUserReputationXP

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

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

Example:

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