move hooks cl_hook

This commit is contained in:
Linventif 2023-09-25 11:13:54 +02:00
parent f5a707eea4
commit 7a3f3d3c9e
2 changed files with 8 additions and 19 deletions

View File

@ -0,0 +1,8 @@
//
// Hook
//
// Player Finish Init
hook.Add("InitPostEntity", "gmInte:Ply:Ready", function()
gmInte.SendNet(0)
end)

View File

@ -1,19 +0,0 @@
// Networking
/*
Upload
0 - Say I'm ready
Receive
*/
// net function
function gmInte.SendNet(id, args)
net.Start("gmIntegration")
net.WriteUInt(id, 8)
net.WriteString(util.TableToJSON(args || {}))
net.SendToServer()
end
hook.Add("InitPostEntity", "gmInte:Ply:Ready", function()
gmInte.SendNet(0)
end)