diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-05-07 13:47:40 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-05-07 13:47:40 -0400 |
| commit | 9e0537b0aa417e88a6a61238484ddcef74080ae0 (patch) | |
| tree | e2bd590ec3de41d384aa5f6206b14e1a73647846 /gamemode/core/inventory/common | |
| parent | 191ba416c8b611ea4901cead138789a357c56134 (diff) | |
| download | artery-9e0537b0aa417e88a6a61238484ddcef74080ae0.tar.gz artery-9e0537b0aa417e88a6a61238484ddcef74080ae0.tar.bz2 artery-9e0537b0aa417e88a6a61238484ddcef74080ae0.zip | |
Added tons of stuff
Diffstat (limited to 'gamemode/core/inventory/common')
| -rw-r--r-- | gamemode/core/inventory/common/items.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gamemode/core/inventory/common/items.lua b/gamemode/core/inventory/common/items.lua index 03113f5..95a507c 100644 --- a/gamemode/core/inventory/common/items.lua +++ b/gamemode/core/inventory/common/items.lua @@ -14,15 +14,18 @@ local function drop_self(tbl) end +--Client requests the item be droped from the ent, invid, and inv position function items.DropItem(ent_or_tbl,invid,frompos) + --[[ if type(ent_or_tbl) == "table" then drop_self(ent_or_tbl) else drop_provided(ent_or_tbl,invid,frompos) end + ]] assert(CLIENT,"requested to drop an item when we are not the client!") net.Start("art_RequestInvDrop") - net.WriteEntity(ent) + net.WriteEntity(ent_or_tbl) net.WriteUInt(invid,32) net.WriteTable(frompos) net.SendToServer() |
