aboutsummaryrefslogtreecommitdiff
path: root/gamemode/server/spawnitem.lua
blob: ef1310477df9d5d64084fcd4a558d903b1b0d473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function SpawnWSItem(Item,pos)
	local IT = GetItemByName(Item)
		
	local drop = ents.Create("ws_item")
	drop.Item = IT
	drop:SetModel(drop.Item.Model)
	drop:SetPos(pos)
	drop:Spawn()
		
	return drop
end