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)