impulse_container
The container entity.
Used for storage and loot.
Functions
impulse_container:GetCapacity()
View source »Gets the container's capacity.
Returns
-
int
The container's capacity.
impulse_container:GetLoot()
View source »Gets whether the container is lootable or not.
Returns
-
bool
Whether the container is lootable or not.
impulse_container:SetCapacity(iCapacity)
View source »Sets the container's capacity. This is set by server and does nothing within the client realm.
Parameters
-
iCapacity
int
The container's capacity.
impulse_container:SetLoot(bLootable)
View source »Sets the container to be lootable. This is set by server and does nothing within the client realm.
Parameters
-
bLootable
boolean
Whether the container is lootable or not.
Fields
ENT.HUDDesc
View source »The HUD element description
ENT.HUDName
View source »The HUD element name.