Exports

All available client and server exports for use.

Client

openPerksUi


This function openthe perk related user interface (UI) elements on the player's screen.

  • This function does not require any parameters.

Usage Example:

exports['zat-perks']:openPerksUi()

In this example:

  • The perks UI elements is displayed on the player's screen.

HasPerk


This function checks if the player has a specified perk or not

exports['zat-perks']:HasPerk(id)
  1. id (string)

    • The perk ID to check.

Returns:

  • boolean

    • Returns true if the player has the perk, false otherwise.

Usage Example:

AddReputationPoints


This function adds reputation points to the player

  1. amount (number)

    • The Amount to add to the players' reputation

Usage Example:

Server

HasPerk


This function checks if the player has a specified perk or not

  1. id (string)

    • The perk ID to check.

Returns:

  • boolean

    • Returns true if the player has the perk, false otherwise.

Usage Example:

AddReputationPoints


This function adds reputation points to the player

  1. amount (number)

    • The Amount to add to the players' reputation

Usage Example:

Last updated