Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- AddCSLuaFile()
- util.AddNetworkString( "AE2F" )
- util.AddNetworkString( "AE2FAF" )
- e2AbuseableFunctions = {"egp3DTracker","runOnChat","holoCreate","fLight","lastSaid","findByClass","findByModel","findPlayerBy","propNotSolid","setPos","streamStart"}
- function getAllE2Info()
- local e2s = {}
- for k, v in pairs( ents.FindByClass( "gmod_wire_expression2" ) ) do
- if v.context then
- e2s[k] = {
- ["pos"] = v:GetPos(),
- ["name"] = v.name,
- ["ops"] = math.floor(v.context.prfbench),
- ["owner"] = v:CPPIGetOwner():GetName(), -- THIS CAUSES MASSIVE SCRIPT ERRORS OVER TIME
- }
- end
- end
- return e2s;
- end
- net.Receive( "AE2F", function( len, ply )
- net.Start("AE2F")
- net.WriteTable(getAllE2Info())
- net.Send(ply) -- THIS IS LINKED TO IT ASWELL
- end )
- else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement