aboutsummaryrefslogtreecommitdiff
path: root/doc/structs/dropped_item.md
blob: ffabfbd7677b2a13cbb509b58177f459d2ed1bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Dropped item

Droped items are represented as a name-data combo

	local i = <table_item>
	local e = ents.Create("art_droppeditem")
	e.Item = {
		Name = i.Name
		Data = i:Serialize()
	}

This structure is used in:
* gamemode/core/inventory/sv_invtracker.lua
* entities/entities/art_droppeditem/init.lua