help me fix the esp

Runbu73

Участник
Автор темы
124
6
I have this skeleton esp code but it ignores certain players.. can anyone help me solve it

Ícone Verificada pela comunidade

Lua:
if aim.CheckBox.teste158[0] then
        for iter_1_20 = 0, sampGetMaxPlayerId() do
                if sampIsPlayerConnected(iter_1_20) then
                    local var_1_10, var_1_11 = sampGetCharHandleBySampPlayerId(iter_1_20)
                    local var_1_12 = sampGetPlayerColor(iter_1_20)
                    local var_1_13, var_1_14, var_1_15, var_1_16 = explode_argb(var_1_12)
                    local var_1_17 = join_argb(255, var_1_14, var_1_15, var_1_16)

                    if var_1_10 and doesCharExist(var_1_11) and isCharOnScreen(var_1_11) then
                        local var_1_18 = {
                            3,
                            4,
                            5,
                            51,
                            52,
                            41,
                            42,
                            31,
                            32,
                            33,
                            21,
                            22,
                            23,
                            2
                        }

                        for iter_1_21 = 1, #var_1_18 do
                            pos1X, pos1Y, pos1Z = getBodyPartCoordinates(var_1_18[iter_1_21], var_1_11)
                            pos2X, pos2Y, pos2Z = getBodyPartCoordinates(var_1_18[iter_1_21] + 1, var_1_11)
                            pos1, pos2 = convert3DCoordsToScreen(pos1X, pos1Y, pos1Z)
                            pos3, pos4 = convert3DCoordsToScreen(pos2X, pos2Y, pos2Z)

                            renderDrawLine(pos1, pos2, pos3, pos4, 1, var_1_17)
                        end

                        for iter_1_22 = 4, 5 do
                            pos2X, pos2Y, pos2Z = getBodyPartCoordinates(iter_1_22 * 10 + 1, var_1_11)
                            pos3, pos4 = convert3DCoordsToScreen(pos2X, pos2Y, pos2Z)

                            renderDrawLine(pos1, pos2, pos3, pos4, 1, var_1_17)
                        end

                        local var_1_19 = {
                            53,
                            43,
                            24,
                            34,
                            6
                        }

                        for iter_1_23 = 1, #var_1_19 do
                            posX, posY, posZ = getBodyPartCoordinates(var_1_19[iter_1_23], var_1_11)
                            pos1, pos2 = convert3DCoordsToScreen(posX, posY, posZ)
                        end
                    end
                end
            end
        end