Download the Guru IA app

Android and iOS

Foto de perfil

Trem

SENT BY THE APP
Estudos Gerais05/02/2025

Corrigir todas as função desse mod menu colocar todas pra fu...

Corrigir todas as função desse mod menu colocar todas pra funcionar real em todos servidor samp Android deixa aa função sem erro bug ou crash local imgui = require 'mimgui' local sampev = require 'samp.events' local faicons = require('fAwesome6')

local windowState = imgui.new.bool(false) local showLoading = imgui.new.bool(false) local selectedTab = imgui.new.int(0) local loadingStartTime = 0 local font1, font2 local vidaValue = imgui.new.float(100.0)

local aim = { CheckBox = { teste23 = imgui.new.bool(false), -- ESP jogador linha espVeiculo = imgui.new.bool(false), -- ESP veículo linha espVeiculoBox = imgui.new.bool(false), -- ESP veículo caixa } }

imgui.OnInitialize(function() local config = imgui.ImFontConfig() config.MergeMode = true config.PixelSnapH = true local iconRanges = imgui.new.ImWchar[3](faicons.min_range, faicons.max_range, 0) imgui.GetIO().Fonts:AddFontFromMemoryCompressedBase85TTF(faicons.get_font_data_base85('Regular'), 18, config, iconRanges)

local glyph = imgui.GetIO().Fonts:GetGlyphRangesDefault()
font2 = imgui.GetIO().Fonts:AddFontFromFileTTF(getWorkingDirectory() .. "/lib/sulista/fonte2.ttf", 27, nil, glyph)
font1 = imgui.GetIO().Fonts:AddFontFromFileTTF(getWorkingDirectory() .. "/lib/sulista/fonte.ttf", 27, nil, glyph)

end)

function drawLoadingScreen() local w, h = 400, 150 local x = (imgui.GetIO().DisplaySize.x - w) / 2 local y = (imgui.GetIO().DisplaySize.y - h) / 2

imgui.SetNextWindowSize(imgui.ImVec2(w, h), imgui.Cond.Always)
imgui.SetNextWindowPos(imgui.ImVec2(x, y), imgui.Cond.Always)

imgui.Begin("##LoadingWindow", nil,
    imgui.WindowFlags.NoTitleBar + imgui.WindowFlags.NoResize +
    imgui.WindowFlags.NoCollapse + imgui.WindowFlags.AlwaysAutoResize)

imgui.Spacing()
imgui.SetCursorPosX((w - 280) / 2)
imgui.Text("⌛ Abrindo menu, aguarde...")
imgui.Spacing()

local dots = math.floor(os.clock() * 3) % 4
local loadingText = "Carregando" .. string.rep(".", dots)
imgui.SetCursorPosX((w - imgui.CalcTextSize(loadingText).x) / 2)
imgui.Text(loadingText)

imgui.End()

end

function createWindow() imgui.SetNextWindowPos(imgui.ImVec2(130, 130), imgui.Cond.FirstUseEver) imgui.SetNextWindowSize(imgui.ImVec2(750, 470), imgui.Cond.Always)

local flags = imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoResize + imgui.WindowFlags.NoScrollbar + imgui.WindowFlags.NoScrollWithMouse + imgui.WindowFlags.NoTitleBar
imgui.Begin("Painel base", windowState, flags)

imgui.SetCursorPos(imgui.ImVec2(700, 10))
if imgui.Button(faicons("xmark"), imgui.ImVec2(35, 35)) then
    windowState[0] = false
end

local textWidth = imgui.CalcTextSize("TIKIMENU-v1").x
imgui.SetCursorPosX((750 - textWidth) / 2)
imgui.PushFont(font2)
imgui.TextColored(imgui.ImVec4(0.9, 0.4, 0.1, 1.0), "TIKIMENU-v1")
imgui.PopFont()
imgui.Separator()

local tabs = {"FAKE", "ESP", "VEÍCULO", "TROLL", "PLAYER"}
for i = 0, #tabs - 1 do
    if i > 0 then imgui.SameLine() end
    if imgui.Selectable(tabs[i + 1], selectedTab[0] == i, 0, imgui.ImVec2(140, 25)) then
        selectedTab[0] = i
    end
end
imgui.Separator()

if selectedTab[0] == 1 then
    imgui.Text("ESP:")
    imgui.Checkbox("ESP Linha Jogador", aim.CheckBox.teste23)
    imgui.Checkbox("ESP Linha Veículo", aim.CheckBox.espVeiculo)
    imgui.Checkbox("ESP Caixa Veículo", aim.CheckBox.espVeiculoBox)
elseif selectedTab[0] == 2 then
    imgui.Text("Veículo:")
    if imgui.Button("Reparar Veículo", imgui.ImVec2(140, 25)) then
        local vehicle = getCarCharIsUsing(PLAYER_PED)
        if vehicle and doesVehicleExist(vehicle) then
            repairCar(vehicle)
            sampAddChatMessage("[TIKIMENU] Veículo reparado com sucesso!", 0x00FF00)
        else
            sampAddChatMessage("[TIKIMENU] Você não está em um veículo!", 0xFF0000)
        end
    end
elseif selectedTab[0] == 4 then
    imgui.Text("Player:")
    imgui.SliderFloat("Quantidade de Vida", vidaValue, 1.0, 100.0, "%.0f")
    if imgui.Button("Encher Vida", imgui.ImVec2(140, 25)) then
        setCharHealth(PLAYER_PED, vidaValue[0])
        sampAddChatMessage(string.format("[TIKIMENU] Vida ajustada para %.0f!", vidaValue[0]), 0x00FF00)
    end

    imgui.Spacing()
    if imgui.Button("Suicidar", imgui.ImVec2(140, 25)) then
        setCharHealth(PLAYER_PED, 0)
        sampAddChatMessage("[TIKIMENU] Você se suicidou!", 0xFF0000)
    end
end

imgui.End()

end

function renderVehicleBox(car) local model = getCarModel(car) local minX, minY, minZ, maxX, maxY, maxZ = getModelDimensions(model)

local coords = {
    {minX, minY, minZ}, {minX, maxY, minZ}, {maxX, maxY, minZ}, {maxX, minY, minZ},
    {minX, minY, maxZ}, {minX, maxY, maxZ}, {maxX, maxY, maxZ}, {maxX, minY, maxZ}
}

local screenPoints = {}
for i = 1, 8 do
    local x, y, z = getOffsetFromCarInWorldCoords(car, unpack(coords[i]))
    if isPointOnScreen(x, y, z, 0.0) then
        local sx, sy = convert3DCoordsToScreen(x, y, z)
        table.insert(screenPoints, {sx, sy})
    else
        return
    end
end

local color = 0xFF00FFFF
local drawLines = {
    {1,2},{2,3},{3,4},{4,1}, -- base
    {5,6},{6,7},{7,8},{8,5}, -- topo
    {1,5},{2,6},{3,7},{4,8}  -- laterais
}

for _, l in ipairs(drawLines) do
    local p1, p2 = screenPoints[l[1]], screenPoints[l[2]]
    renderDrawLine(p1[1], p1[2], p2[1], p2[2], 1.5, color)
end

end

imgui.OnFrame( function() return windowState[0] or showLoading[0] end, function() if showLoading[0] then drawLoadingScreen() elseif windowState[0] then createWindow() end end )

function main() if not isSampfuncsLoaded() or not isSampLoaded() then return end repeat wait(0) until isSampAvailable()

sampRegisterChatCommand("c", function()
    if not windowState[0] and not showLoading[0] then
        showLoading[0] = true
        loadingStartTime = os.clock()
    else
        windowState[0] = false
        showLoading[0] = false
    end
end)

while true do
    wait(0)

    if showLoading[0] and os.clock() - loadingStartTime >= 2 then
        showLoading[0] = false
        windowState[0] = true
    end

    imgui.Process = windowState[0] or showLoading[0]

    local px, py, pz = getCharCoordinates(PLAYER_PED)

    if aim.CheckBox.teste23[0] then
        local resX, resY = getScreenResolution()
        for id = 0, 999 do
            local found, ped = sampGetCharHandleBySampPlayerId(id)
            if found and doesCharExist(ped) and isCharOnScreen(ped) then
                local x, y, z = getCharCoordinates(ped)
                if getDistanceBetweenCoords3d(px, py, pz, x, y, z) <= 1000 then
                    local sx, sy = convert3DCoordsToScreen(x, y, z)
                    renderDrawLine(resX / 2, resY / 2, sx, sy, 2, 0xFF00FF00)
                end
            end
        end
    end

    for car = 0, 2047 do
        if doesVehicleExist(car) and isCarOnScreen(car) then
            local x, y, z = getCarCoordinates(car)
            if getDistanceBetweenCoords3d(px, py, pz, x, y, z) <= 1000 then
                if aim.CheckBox.espVeiculo[0] then
                    local sx, sy = convert3DCoordsToScreen(x, y, z)
                    local resX, resY = getScreenResolution()
                    renderDrawLine(resX / 2, resY / 2, sx, sy, 2, 0xFF00AFFF)
                end
                if aim.CheckBox.espVeiculoBox[0] then
                    renderVehicleBox(car)
                end
            end
        end
    end
end

end

Send your questions through the App
Google Play
App Store
Equipe Meu Guru

Do you prefer an expert tutor to solve your activity?

  • Receive your completed work by the deadline
  • Chat with the tutor.
  • 7-day error guarantee