This commit is contained in:
Linventif 2023-09-23 02:25:56 +02:00
parent 34f4128874
commit c66bfd9143

View File

@ -14,6 +14,7 @@ net.Receive("gmIntegration", function(len, ply)
if !ply:IsPlayer() then return end
local id = net.ReadUInt(8)
local data = util.JSONToTable(net.ReadString() || "{}")
// check if argument is valid
if netFuncs[id] then
netFuncs[id](ply, data)