RakNetPacket:SetData Synchronous

Accepts bytes, string, or buffer.

Syntax
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.

Function parameters
ParameterType
dataPacketData

Argument fields

PacketData 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().

Kawaii documentation