CityRP Documentation Repository

ITEM.Clothing

The clothing item base. Outfits which are swapped on use, with equip and remove emotes.

Registration ID
base_clothing
Inherits
ITEM → ITEM.Clothing

Functions

SharedITEM:canDestroy(ply, amt) → boolean, string|nilSource ☍

canDestroy hook/override for this item base.

Parameters

Returns

  1. 1boolean
  2. 2string|nil
SharedITEM:canDrop(ply, pos, amt) → boolean, string|nilSource ☍

canDrop hook/override for this item base.

Parameters

Returns

  1. 1boolean
  2. 2string|nil
SharedITEM:canGive(ply, amt, to) → boolean, string|nilSource ☍

canGive hook/override for this item base.

Parameters

Returns

  1. 1boolean
  2. 2string|nil
SharedITEM:onDestroy(ply)Source ☍

onDestroy hook/override for this item base.

Parameters

SharedITEM:onDrop(ply, pos)Source ☍

onDrop hook/override for this item base.

Parameters

SharedITEM:onGive(ply, amt, to)Source ☍

onGive hook/override for this item base.

Parameters

SharedITEM:onRemove(ply) → booleanSource ☍

onRemove hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:onUse(ply) → booleanSource ☍

onUse hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:postRemove(ply) → booleanSource ☍

postRemove hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:postUse(ply, old, new) → booleanSource ☍

postUse hook/override for this item base.

Parameters

  • plyPlayer
  • oldstring?
  • newstring?

Returns

  1. boolean
SharedITEM:preRemove(ply) → booleanSource ☍

preRemove hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:preUse(ply, old) → booleanSource ☍

preUse hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:SetEmotes(on, off) → ITEMSource ☍

Set on/off emotes.

Parameters

  • onstringEquip Emote.
  • offstringDequip Emote.

Returns

  1. ITEM
SharedITEM:uponLoad()Source ☍

uponLoad hook/override for this item base.

Fields

SharedITEM.nomembershipSource ☍

Whether the clothing is available without membership. Set by SetNonMember.

SharedITEM.off_descSource ☍
SharedITEM.off_descSource ☍
SharedITEM.off_descSource ☍
SharedITEM.on_descSource ☍
SharedITEM.on_descSource ☍
SharedITEM.on_descSource ☍
SharedITEM.SetNonMemberSource ☍

Sets the clothing to not be membership.

SharedITEM.storebgsSource ☍

Bodygroups applied to the store preview model.

SharedITEM.togglemodelSource ☍

Alternate model this outfit toggles to when used again.