jawwel

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jawwel

  • Rank
    Vic

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. jawwel

    Dx Gui Help

    it only works fine for sw/1366, sh/768 other resolution still dont see it
  2. jawwel

    Dx Gui Help

    Hello everyone can someone help me set the gui to all resolution it only works on one screenW, screenH = guiGetScreenSize() resW, resH = 1366, 768 sW, sH = (screenW/resW), (screenH/resH) example: dxDrawRectangle(0*sW, (i*45)-ground.scroll*sH, 43*sW, 43*sH, tocolor(255, 255, 255, 230)) dxDrawImage(0*sW, (i*45)-ground.scroll*sH, 43*sW, 43*sH, "Imagenes/Inventario/Iconos/"..v[2]..".png", 0, 0, 0, tocolor(255, 255, 255)) dxDrawRectangle(43*sW, (i*45)-ground.scroll*sH, 196*sW, 43*sH, tocolor(255, 255, 255, 200)) dxDrawLine(0*sW, (i*45+42)-ground.scroll*sH, 513*sW, (i*45+42)-ground.scroll*sH, tocolor(255, 255, 255, 230), 2, false) dxDrawText(translateLocalization(v[2]), 48*sW, (i*45)-ground.scroll*sH, 194*sW, (i*45+45)-ground.scroll*sH, tocolor(255, 255, 255), 1, "default", "left", "center", false, false, false, false, false, 0, 0, 0);
  3. the error is here: table.insert(signingPlayers, plr) signedPlayers[plr] = true
  4. function signUpToTDM(plr) if (tonumber(getPlayersInDimension(860)) >= 1) then outputChatBox("TDM are in progress, please, wait for them to finish and re-try", plr, 255, 255, 0) return end if (not signedPlayers[plr]) then table.insert(signingPlayers, plr) signedPlayers[plr] = true outputChatBox("You have joined TDM! Try get as many team kills as possible!", plr, 255, 255, 0) outputChatBox("/leave to cancel TDM.", plr, 255, 255, 0) for k, v in ipairs(signingPlayers) do outputChatBox(""..#signingPlayers.."/"..playerLimit.." are now signed up", v, 255, 255, 0) end if (#signingPlayers == playerLimit) then setTimer(stopDx, 50, 1) warpPlayersToField() destroyMarker() timeOutTimer = setTimer(timeOutEvent, tonumber(timeToFinish), 1) timeOut = false for k, v in pairs(signingPlayers) do if (isElement(v)) then triggerClientEvent(v, "TDM.Countdown", v) end end end end end whats wrong ? table index nil