core.plugins.sv_disable_cat
Name: "sv_init.lua". Product: "CityRP - Category Disable". Author: "Cameron".
- 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
- 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
- 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.