-- name: Bytestring Packet Example -- description: Shows a way to send and receive bytestring packets. Send a packet with /example [1|2]. -- Here is the lua documentation for string.pack() and string.unpack(): -- https://www.lua.org/manual/5.3/manual.html#6.4.2 -- It explains the different format strings used in this example mod. --------------------------------------------------------------------------------------------------- local PACKET_EXAMPLE_1 = 1 local PACKET_EXAMPLE_2 = 2 --------------------------------------------------------------------------------------------------- function send_example_1(byte_param, short_param, long_param, float_param, double_param) local bytestring = '' -------------- PACKET ID -------------- .. string.pack("