Yes, your code has a few errors. A missing assignment operator on line 1, closing parenthesis on line 5 & 10, missing comma on line 10, ...
Trying to debug a lot of code at once is super hard,
especially if you're just starting out.
Write a small part of your program, test it, then debug until it works. The errors in your console will usually tell you what went wrong. If you need help with a specific error, include the error message along with the code that's causing issues, in your forum post.
Here's a template to get you started. This should give you a working reset command that appears in XGUI:
-- lua/ulx/modules/sh/my-ulx-stuff.lua
CATEGORY_NAME = "My Ulx Stuff"
function ulx.reset( calling_ply, target_ply )
ulx.fancyLogAdmin( calling_ply, "#A reset #T", calling_ply, target_ply )
end
local reset = ulx.command( CATEGORY_NAME, "ulx reset", ulx.reset, "!reset" )
reset:addParam{ type=ULib.cmds.PlayerArg }
reset:defaultAccess( ULib.ACCESS_ADMIN )
reset:help( "resets the selected target. " )
Of course, it won't actually reset your target yet.
Next, try adding the code to respawn a player, and make sure that works.
Then prevent respawning players that are still alive, and make sure that works.
And so on...