Player classserver
Part of Extra Clothing
Summary
Methods
Methods
Player:SetBodygroupClothes(itemTable, bShouldUnwear)
server gamemodes/cwhl2rp/plugins/clothes/plugin/sv_plugin.lua:106Wears or takes off a bodygroup clothing item.
Calls the item's OnChangeClothes, which sets the bodygroup, records the item in
player.bgClothesData under its bodygroup, updates the total protection of the worn
items and sends the data to the player with the BGClothes Cable message. An item already
worn in the same bodygroup is taken off first. Taking off an item that is not the one
worn in its bodygroup does nothing. Errors in OnChangeClothes are printed and do not
stop the change.
Parameters
- itemTable Item The item, based on
bodygroup_base - bShouldUnwear Boolean optional, defaults to
niltrueto take the item off instead of wearing it
Player:SetSkinClothes(itemTable, bShouldUnwear)
server gamemodes/cwhl2rp/plugins/clothes/plugin/sv_plugin.lua:141Wears or takes off a skin clothing item.
Calls the item's OnChangeClothes, which sets the skin, records the item in
player.skinClothesData under its skin, updates the total protection and sends the
data to the player with the SkinClothes Cable message. A model has a single skin, so any
other skin item is taken off first. Taking off an item that is not worn does nothing.
Parameters
- itemTable Item The item, based on
skin_base - bShouldUnwear Boolean optional, defaults to
niltrueto take the item off instead of wearing it