RakNetPacket: SetData Synchronous
Accepts bytes, string, or buffer.
Luau
RakNetPacket:SetData(data: PacketData) -> ()Parameters
Call this method with a RakNetPacket receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.
| Parameter | Type |
|---|---|
data | PacketData |
Argument fields
Luau
PacketData = string | buffer | {number}Returns
()This function returns no values.
Availability
RakNet is disabled by default. RakNet and raknet are removed when the setting is off; retained references can still call is_enabled().