I've asked a handful of people if this code is abusable/exploitable and the 'yes' to 'no' ratio was about 50:50 and I'm code illiterate so I don't have a single clue about it.
Code:
if SERVER then
util.AddNetworkString( "RunLua" )
local PLAYER = FindMetaTable( "Player" )
function PLAYER:RunLua( lua )
net.Start( "RunLua" )
net.WriteString( lua )
net.Send( self )
end
else
net.Receive( "RunLua", function()
local lua = net.ReadString()
RunString( lua )
end )
end
If this is abusable/exploitable in any way tell me how you do it. and maybe a way to fix it?