Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ItemStack = {}
- function items.PushEntity( class )
- if( ITEM != nil ) then
- table.insert( ItemStack, 1, { Table = ITEM, Class = class:lower() } )
- end
- ITEM = {}
- table.Merge( ITEM, items.EntityBase )
- ITEM_CLASS = class:lower()
- ITEM.ClassName = class:lower()
- end
- function items.PopEntity()
- ITEM = nil
- ITEM_CLASS = nil
- if( #ItemStack > 0 ) then
- ITEM = ItemStack[1].Table
- ITEM_CLASS = ItemStack[1].Class
- table.remove( ItemStack, 1 )
- end
- end
Add Comment
Please, Sign In to add comment