Command Creation

Hello i need some help trying to create a set player color command for nutscript 1.1 hl2rp please help here is the code i have started working on i cant figure it out

nut.command.add(“charsetcolor”, {
adminOnly = true,
syntax = “<string name> <string model>”,
onRun = function(client, arguments)
if (!arguments[2]) then
return L(“invalidArg”, client, 2)
end

	local target = nut.command.findPlayer(client, arguments[1])

	if (IsValid(target) and target:getChar()) then
		target:getChar():setModel(arguments[2])
		target:SetupHands()

		nut.util.notifyLocalized("cSetPlayerColor", nil, client:Name(), target:Name(), arguments[2])
	end
end

})

LINK USED: https://wiki.garrysmod.com/page/Player/SetPlayerColor