Module core.plugins.rep.sv_init

REP Serverside.

Module Overview

Functions

rep_category_exists(category) Check if a rep category exists.
rep_load(ply, callback) Load a players REP, with an optional callback for results.
rep_get(player, category) Get the REP count for a player, with an optional category filter.

Tables

rep_categories The different types of REP avaliable.

Functions

rep_category_exists(category)
Check if a rep category exists.

Parameters:

  • category The category to check.

Returns:

    boolean If the category exists.
rep_load(ply, callback)
Load a players REP, with an optional callback for results.

Parameters:

  • ply The player whos REP is being loaded.
  • callback Optional callback function, which recieves results table or 0.
rep_get(player, category)
Get the REP count for a player, with an optional category filter.

Parameters:

  • player The player to list REP for.
  • category Optional category filter.

Returns:

    The number of REPs the player has.

Tables

rep_categories
The different types of REP avaliable.

Fields:

  • government
  • general
  • underground