You can utilize the HandleReputation export to manage player reputation in the Black Market system. Below are examples of how to increase, decrease, and retrieve a player's reputation.
Use this to retrieve and display the current reputation of the player.
Click to view Exports List
Increase Reputation:
To increase a player’s reputation, use the following code:
increaseAmount =10-- Set the amount to increase reputationexports['evo-blackmarket']:HandleReputation('increase', increaseAmount)
This will increase the player's reputation by the specified amount (in this case, 10).
Decrease Reputation:
To decrease a player’s reputation, use this code:
decreaseAmount =5-- Set the amount to decrease reputationexports['evo-blackmarket']:HandleReputation('decrease', decreaseAmount)
This will reduce the player’s reputation by 5. If the reputation falls below 0, it will automatically reset to 0.
Get Current Reputation:
To retrieve a player’s current reputation, use the following: