I am trying to kick a player using FAdmin via a derma text entry.
This is the code in question:
dte.OnEnter = function(self, tar, ply) ply:ConCommand("fadmin kick "..tar:SteamID().." "..dte:GetValue()) end
This gives me an error saying:
[ERROR] addons/darkrpmodification/lua/darkrp_modules/fp_adminstick/cl_adminstick.lua:27: attempt to index local 'ply' (a nil value)
I don’t see why it cannot find the ply entity. If I use tar:Kick(reason) then it just gives me the same error, with “tar” as the problem.
Any helps is appreciated