For example, using the HP crystal in w.adoulin and canceling out of the crystal dialog generates a packet. In my code, I've attempted to send that same packet via the following code:

When I execute the code and track the packet in packetviewer, I see the following data:

However, this does not cancel out of the HP crystal menu. If I then cancel out of the crystal menu in-game by hitting escape, packetviewer shows the following data:

If you look at the bottom of the packetviewer window, the options are identical. Target, Option Index, _unknown, etc.
However, there is a slight difference in the raw hex data. Particularly in the dark grey section.
Specifically, the packet that my code generates shows a hex value of 5B 0A 00 00, and the packet generated in-game shows a hex value of 5B 0A 3A 04.
Is there a problem in the way I'm generating my packet? Why am I missing the 3A 04 section of the packet? Admitedly, I'm very new to addon programming, and dealing with packets in general. But documentation seems relatively sparse on this issue, and I'm getting the majority of my references from viewing the lua code for other addons.
Thanks in advance.
Edit:
Is there a different way to generate this packet passing the hex values or something? I didn't find anything online, but maybe by passing a string, perhaps?
something like:
local inject = packets.new("5B 0A 3A 04 74 ...etc");