net_packet_get_data(buffer)
This is used automatically by the receive scripts. It is used to obtain the data types and values from the buffer.
buffer: The buffer to read from.