Adding firework rockets to inventory
#1
How would I add a firework rocket with custom values for flight, type, trail, flicker and colors to an inventory, using AddItem? I've tried different methods, but nothing has worked so far.

Code:
Item = cItem()
Item.m_ItemType = E_ITEM_FIREWORK_ROCKET
Item.m_ItemCount = 1
Item.m_FireworkItem.m_Type = 1
Item.m_FireworkItem.m_HasFlicker = true
Item.m_FireworkItem.m_HasTrail = true
Player:GetInventory():AddItem(Item)
Reply
Thanks given by:


Messages In This Thread
Adding firework rockets to inventory - by Mathias - 02-23-2017, 09:39 AM



Users browsing this thread: 3 Guest(s)