Metatable:NetworkMessage - RodrigoOt/forgottenserver GitHub Wiki
No description available at the moment.
###Available methods:
addByte(number)
addDouble(number)
addItem(item)
addItemId(itemId)
addPosition(position)
addString(string)
addU16(number)
addU32(number)
addU64(number)
getByte()
getPosition()
getString()
getU16()
getU32()
getU64()
reset()
sendToPlayer(player)
skipBytes(number)
###### addByte(number) > **Description:** N/A > **Parameters:**
- _number_ - _No description_
###### addDouble(number) > **Description:** N/A > **Parameters:**
- _number_ - _No description_
###### addItem(item) > **Description:** N/A > **Parameters:**
- _item_ - _No description_
###### addItemId(itemId) > **Description:** N/A > **Parameters:**
- _itemId_ - _No description_
###### addPosition(position) > **Description:** N/A > **Parameters:**
- _position_ - _No description_
###### addString(string) > **Description:** N/A > **Parameters:**
- _string_ - _No description_
###### addU16(number) > **Description:** N/A > **Parameters:**
- _number_ - _No description_
###### addU32(number) > **Description:** N/A > **Parameters:**
- _number_ - _No description_
###### addU64(number) > **Description:** N/A > **Parameters:**
- _number_ - _No description_
###### getByte() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:getByte() ``` > **Added in version:** 1.0
###### getPosition() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:getPosition() ``` > **Added in version:** 1.0
###### getString() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:getString() ``` > **Added in version:** 1.0
###### getU16() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:getU16() ``` > **Added in version:** 1.0
###### getU32() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:getU32() ``` > **Added in version:** 1.0
###### getU64() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:getU64() ``` > **Added in version:** 1.0
###### reset() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:reset() ``` > **Added in version:** 1.0
###### sendToPlayer(player) > **Description:** N/A > **Parameters:**
- _player_ - _No description_
###### skipBytes(number) > **Description:** N/A > **Parameters:**
- _number_ - _No description_