Module core.plugins.uniforms.sv_init

Uniform Management / Cooldown Plugin.

Module Overview

Functions

PLUGIN.CanUseItem(ply, itmID) A hook called whenever a player uses an item.
PLUGIN.AddCooldown(ply, itmID) Add a cooldown for a player.
PLUGIN.ExpireCooldowns() A function called to loop through the cooldowns and ensure that outdated cooldowns are removed.
PLUGIN.LoadData() A function to load the data from the stored file.
PLUGIN.SaveData() A function to save the cooldowns to a file.

Tables

PLUGIN Table containing plugin information.

Functions

PLUGIN.CanUseItem(ply, itmID)
A hook called whenever a player uses an item.

Parameters:

  • ply The player using the item.
  • itmID The item ID of the item being used.
PLUGIN.AddCooldown(ply, itmID)
Add a cooldown for a player.

Parameters:

  • ply The player to add.
  • itmID The item ID to add
PLUGIN.ExpireCooldowns()
A function called to loop through the cooldowns and ensure that outdated cooldowns are removed.
PLUGIN.LoadData()
A function to load the data from the stored file.
PLUGIN.SaveData()
A function to save the cooldowns to a file.

Tables

PLUGIN
Table containing plugin information.

Fields:

  • name The plugin name.
  • author The plugin author.
  • uniformItems Which items count as being items.
  • delay The delay between item equips.
  • folder The data folder where data is stored.
  • cooldownFile The file where cooldowns are stored.
  • cooldowns The current cooldowns.