function ur.giveSwep( ply, command, args ) local swep = weapons.GetStored( args[1] ) if ( args[1] == nil ) then return end if (swep == nil) then return end local loadout = ur.getLoadout(ply) local function excluded() if ur.config.admin_exclude.loadouts == "true" and ply:IsAdmin() then return true end if loadout == "excluded" then return true end if ur.config.loadouts == "false" then return true end if table.HasValue(ur.loadouts[loadout]["loadout"], swep.Classname) then return true end return false end if (( !excluded() )) then ULib.tsay(ply, "Sorry, You Can't Use This") return end if ( !gamemode.Call( "PlayerGiveSWEP", ply, args[1], swep ) ) then return end MsgAll( "[URestrict]:Giving "..ply:Nick().." a "..swep.Classname.."\n" ) ply:Give( swep.Classname ) ply:SelectWeapon( swep.Classname ) end timer.Simple(0, function() concommand.Add( "gm_giveswep", ur.giveSwep ) end ) -- Replace Garrys Command :P