mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
brodcast option
This commit is contained in:
parent
8cc705cdc4
commit
83c2fd2d14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user