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_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addByte(any_number) ``` > **Added in version:** 1.0
###### addDouble(number) > **Description:** N/A > **Parameters:**
  • _number_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addDouble(any_number) ``` > **Added in version:** 1.0
###### addItem(item) > **Description:** N/A > **Parameters:**
  • _item_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addItem(some_userdata) ``` > **Added in version:** 1.0
###### addItemId(itemId) > **Description:** N/A > **Parameters:**
  • _itemId_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addItemId(2400) ``` > **Added in version:** 1.0
###### addPosition(position) > **Description:** N/A > **Parameters:**
  • _position_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addPosition(Position()) ``` > **Added in version:** 1.0
###### addString(string) > **Description:** N/A > **Parameters:**
  • _string_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addString(any_string) ``` > **Added in version:** 1.0
###### addU16(number) > **Description:** N/A > **Parameters:**
  • _number_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addU16(any_number) ``` > **Added in version:** 1.0
###### addU32(number) > **Description:** N/A > **Parameters:**
  • _number_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addU32(any_number) ``` > **Added in version:** 1.0
###### addU64(number) > **Description:** N/A > **Parameters:**
  • _number_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:addU64(any_number) ``` > **Added in version:** 1.0
###### 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_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:sendToPlayer(some_userdata) ``` > **Added in version:** 1.0
###### skipBytes(number) > **Description:** N/A > **Parameters:**
  • _number_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local networkmessage = NetworkMessage(...) networkmessage:skipBytes(any_number) ``` > **Added in version:** 1.0
⚠️ **GitHub.com Fallback** ⚠️