function APILoadout.GiveLoadout(c,u)APIEquipment.RemoveWeapons(c)local p=APILoadout.GetLoadoutFromName(u)local K=p.PrimaryEquipment local C=p.SecondaryEquipment local L=p.TertiaryEquipment APIEquipment.GiveWeapon(c,K,true)APIEquipment.GiveWeapon(c,C,false)APIEquipment.GiveWeapon(c,L,false)end return APILoadout

function APILoadout.GiveLoadout(player,loadoutName)
	
	-- Remove all weapons from the player
	APIEquipment.RemoveWeapons(player)
	
	local loadoutData = APILoadout.GetLoadoutFromName(loadoutName)
	
	local primaryName = loadoutData.PrimaryEquipment
	local secondaryName = loadoutData.SecondaryEquipment
	local tertiaryName = loadoutData.TertiaryEquipment
	
	-- Give the equipment to the player
	APIEquipment.GiveWeapon(player,primaryName,true)	
	APIEquipment.GiveWeapon(player,secondaryName,false)	
	APIEquipment.GiveWeapon(player,tertiaryName,false)	
end


return APILoadout
