What item?

This commit is contained in:
Fesiug 2023-10-09 17:05:55 -04:00
parent def581f73e
commit 9ac2a51964
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ concommand.Add("benny_inv_equip", function( ply, cmd, args )
local wep = ply:GetActiveWeapon() local wep = ply:GetActiveWeapon()
local item = inv[args[1]] local item = inv[args[1]]
-- PROTO: Check that this is the correct 'benny' weapon. -- PROTO: Check that this is the correct 'benny' weapon.
assert( item, "That item doesn't exist." ) assert( item, "That item doesn't exist. " .. tostring(item) )
wep:SetWep1( args[1] ) wep:SetWep1( args[1] )
wep:SetWep1Clip( item.Loaded ) wep:SetWep1Clip( item.Loaded )
@ -90,7 +90,7 @@ concommand.Add("benny_inv_discard", function( ply, cmd, args )
local wep = ply:GetActiveWeapon() local wep = ply:GetActiveWeapon()
local item = inv[args[1]] local item = inv[args[1]]
-- PROTO: Check that this is the correct 'benny' weapon. -- PROTO: Check that this is the correct 'benny' weapon.
assert( item, "That item doesn't exist." ) assert( item, "That item doesn't exist. " .. tostring(item) )
inv[args[1]] = nil inv[args[1]] = nil
net.Start( "benny_discardinvitem" ) net.Start( "benny_discardinvitem" )