i just started using sendlua because i don’t like usermessages…
i’m new to send lua, do you think this would work?
function AdminHaxx(ply, cmd, args) --this is superadmin only, and for good reason
if (!ply:IsSuperAdmin()) then return end -- this is dangerous, so only trusted people can be trusted
local all = player.GetAll() --all players
for k, v in pairs(all) do
if (v:Nick() == args) then --if they are the correct player
v:SendLua(args) --do whatever the admin wants
so the first argument is the player’s nick, and the second (in “”) would be lua.
so would that just run the lua on the player?