CityRP Documentation Repository

core.plugins.sv_disable_cat

Name: "sv_init.lua". Product: "CityRP - Category Disable". Author: "Cameron".

Functions

Servercityrp.catdisable.itemplace(player, item) → booleanSource ☍

Blocks placement of a disabled item, deferring to the original handler otherwise.

Parameters

  • playerPlayerThe player placing the item.
  • itemstringThe item unique ID.

Returns

  1. boolean
Servercityrp.catdisable.itemuse(player, item) → booleanSource ☍

Blocks use of a disabled item, deferring to the original handler otherwise.

Parameters

  • playerPlayerThe player using the item.
  • itemstringThe item unique ID.

Returns

  1. boolean
Servercityrp.disablecat()Source ☍

Hides the event-disabled items from the store and swaps in the blocking handlers.

Servercityrp.enablecat()Source ☍

Returns the event-disabled items to the store.

Tables

Servercityrp.catdisableSource ☍
Servercityrp.catdisable.functionsSource ☍

Fields

Servercityrp.catdisable.functions.itemplaceSource ☍
Servercityrp.catdisable.functions.itemuseSource ☍