1. Post #1

    February 2014
    36 Posts
    Hi, i have this code
    Need to disable item Holster. That players cant withdraw this. Only buy and sell.

    Code:
    ITEM.Name = 'Armor'
    ITEM.Description = "100 armor!"
    ITEM.Price = 1000
    ITEM.Material = 'materials/niandralades/armor.png'
    
    function ITEM:OnBuy(ply)
    	ply:SetArmor ( 100 )
    end
    
    function ITEM:OnEquip(ply)
    	ply:SetArmor ( 100 )
    end
    
    function ITEM:OnHolster(ply)
        ? ? ? ? ?
    end
    Thx
    Reply With Quote Edit / Delete Windows 8.1 Chrome Russian Federation Show Events

  2. Post #2

    December 2013
    231 Posts
    Delete the OnHolster function?
    Reply With Quote Edit / Delete Windows 10 Chrome Canada Show Events

  3. Post #3

    February 2014
    36 Posts
    Delete the OnHolster function?
    The ability to withdraw the armor will remain ):
    Reply With Quote Edit / Delete Windows 8.1 Chrome Russian Federation Show Events

  4. Post #4
    Heroezzz's Avatar
    May 2016
    77 Posts
    Try
    Code:
    function ITEM:OnHolster(ply)
       return end
    end
    Reply With Quote Edit / Delete Windows 7 Chrome Kazakhstan Show Events

  5. Post #5

    February 2014
    36 Posts
    Try
    Code:
    function ITEM:OnHolster(ply)
       return end
    end
    Thanks for the answer.
    Items don't show in shop ):
    Reply With Quote Edit / Delete Windows 8.1 Chrome Russian Federation Show Events

  6. Post #6
    Benn20002's Avatar
    December 2014
    66 Posts
    Because that should cause an error, try
    function ITEM:OnHolster(ply)
       return
    end
    

    you can also try
    return false
    
    Reply With Quote Edit / Delete Windows 8.1 Chrome Germany Show Events

  7. Post #7

    February 2014
    36 Posts
    Because that should cause an error, try
    function ITEM:OnHolster(ply)
       return
    end
    

    you can also try
    return false
    
    Thanks for the answer.
    I can Holster item
    Reply With Quote Edit / Delete Windows 8.1 Chrome Russian Federation Show Events

  8. Post #8
    Benn20002's Avatar
    December 2014
    66 Posts
    Try this:
    function ITEM:CanPlayerHolster()
        return false
    end
    
    Reply With Quote Edit / Delete Windows 8.1 Chrome Germany Show Events

  9. Post #9

    February 2014
    36 Posts
    Try this:
    function ITEM:CanPlayerHolster()
        return false
    end
    
    It's work fine! Thank u very much! (:
    Reply With Quote Edit / Delete Windows 8.1 Chrome Russian Federation Show Events