Here is the command, put that in ulx/lua/ulx/fun.lua
function ulx.cc_stripweapons( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS )
return
end
local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
if not targets then
ULib.tsay( ply, err )
return
end
for _, v in ipairs( targets ) do
ulx.logUserAct( ply, v, "#A stripped #T's weapons" )
v:StripWeapons()
end
end
ulx.concommand( "strip", ulx.cc_stripweapons, "<user(s)> - Strips user(s)'s weapons.", ULib.ACCESS_ADMIN, "!strip", _, ulx.ID_PLAYER_HELP )