2 Problems! Can't get mapvote to work and can't find a ulx respawn command for Excls Jailbreak!

As the title says I was wondering if anyone could help me with these things.

This is the mapvote system I’m trying to use with Excl’s Jailbreak 7.

And this is the respawn lua file


function ulx.respawn( calling_ply, target_plys )
  local affected_plys = {}
  for i=1, #target_plys do 
    local v = target_plys[ i ]
    if !v:Alive() then
      v._jb_forceRespawn = true
      v:Spawn()
      table.insert(affected_plys, v)
    end
  end
  ulx.fancyLogAdmin( calling_ply, "#A respawned #T", affected_plys )
end
local respawn = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn, "!respawn" )
respawn:addParam{ type=ULib.cmds.PlayersArg }
respawn:defaultAccess( ULib.ACCESS_ADMIN )
respawn:help( "Respawns target(s)." )

Thanks!

Bump

I’ll take a look, but I’ve not done much with ULX. Putting this here anyway. Wrap code in


 tags as it makes it easier for people to see what's going on.



function ulx.respawn( calling_ply, target_plys )
local affected_plys = {}
for i=1, #target_plys do
local v = target_plys[ i ]
if !v:Alive() then
v._jb_forceRespawn = true
v:Spawn()
table.insert(affected_plys, v)
end
end
ulx.fancyLogAdmin( calling_ply, “#A respawned #T”, affected_plys )
end

local respawn = ulx.command( CATEGORY_NAME, “ulx respawn”, ulx.respawn, “!respawn” )
respawn:addParam{ type=ULib.cmds.PlayersArg }
respawn:defaultAccess( ULib.ACCESS_ADMIN )
respawn:help( “Respawns target(s).” )