brodcast option

This commit is contained in:
Linventif 2023-09-27 02:24:51 +02:00
parent 8cc705cdc4
commit 83c2fd2d14

View File

@ -17,7 +17,11 @@ function gmInte.SendNet(id, data, ply, func)
net.WriteUInt(id, 8)
net.WriteString(util.TableToJSON(data))
if (func) then func() end
net.Send(ply)
if (ply == nil) then
net.Broadcast()
else
net.Send(ply)
end
end
// Receive