Module core.plugins.generic.sv_init

Called when a player attempts to holster a weapon.

Module Overview

Functions

PLUGIN.playerCanUseItem(ply, item, silent) Called when a player attempts to use an item.
PLUGIN.PlayerCanEarnContraband(ply) Called when a player earns money from contraband.

Functions

PLUGIN.playerCanUseItem(ply, item, silent)
Called when a player attempts to use an item.

Parameters:

  • ply Player Player using the item.
  • item string ID of the item.
  • silent bool If output should be surpressed.

Returns:

    boolean If the weapon can be used.
PLUGIN.PlayerCanEarnContraband(ply)
Called when a player earns money from contraband.

Parameters:

  • ply Player Player earning money.

Returns:

    boolean If the player can earn money.