Salary

Hook Documentation for Salary Module.

Functions

MODULE:CanPlayerEarnSalary(client, faction, class)

Determines if a player is allowed to earn salary.

Parameters

  • client Player

    The player whose eligibility for salary is being checked.

  • faction Table

    The faction the player belongs to.

  • class Table

    The class of the player's character.

Returns

  • True

    if the player is allowed to earn salary, false otherwise.

MODULE:CreateSalaryTimer(client)

Creates a timer to manage player salary.

Parameters

  • client Player

    The player for whom the salary timer is created.

MODULE:GetSalaryAmount(client, faction, class)

Retrieves the amount of salary a player should receive.

Parameters

  • client Player

    The player receiving the salary.

  • faction Table

    The faction the player belongs to.

  • class Table

    The class of the player's character.

Returns

  • The

    amount of salary the player should receive.

MODULE:GetSalaryLimit(client, faction, class)

Retrieves the salary limit for a player.

Parameters

  • client Player

    The player for whom to retrieve the salary limit.

  • faction Table

    The faction the player belongs to.

  • class Table

    The class of the player's character.

Returns

  • The

    salary limit for the player.