1. Hello i need next small help.... How i can create hook - if player try change wear?

    I need this
    if player remove or add item to wear inventory -> remove all from wear inventory -> Give new items to inventory.

    OR:
    Disable loot from wear inv from died or sleeped players and block change items in my wear inv...

    Its for TDM mode - now they can loot enemy tshirt color :/

    Thank you
     
  2. Wulf

    Wulf Community Admin

    I'd suggest trying to CanWearItem hook that exists.
     
  3. This not work - if i chnage tshirt from wear inv to normal inv, this hook nothink to do... He working only if i set item in to wear inv...

    *edit:
    Not hard...
    Code:
    player.inventory.containerWear.SetFlag(ItemContainer.Flag.IsLocked, true);
    Works fine..
     
    Last edited by a moderator: Feb 17, 2017