Убрать табличку завода/капта

ProstoNick

Участник
Автор темы
52
6
Версия SA-MP
  1. 0.3.7-R3
Помогите убрать эту табличку
 

Вложения

  • 1 .jpg
    1 .jpg
    8.7 KB · Просмотры: 23
Последнее редактирование:
Решение
В прошлой твоей теме (https://www.blast.hk/threads/247388/#post-1656727)
Кидал тебе такой код:

Lua:
local sampev = require 'lib.samp.events'

local blockedEvents = {
    "event.arizonahud.updateHotKeysNotificationVisibility",
    "event.arizonahud.setHotKeysInformation"
}

local function containsBlockedEvent(str)
    for _, evt in ipairs(blockedEvents) do
        if str:find(evt, 1, true) then
            return true
        end
    end
    return false
end

addEventHandler("onReceivePacket", function(id, bs)
    if id ~= 220 then return end

    raknetBitStreamIgnoreBits(bs, 8)
    local pktType = raknetBitStreamReadInt8(bs)
    if pktType ~= 17 then return end
    raknetBitStreamIgnoreBits(bs, 32)

    local len =...

BOBA_BO

Участник
34
6
В прошлой твоей теме (https://www.blast.hk/threads/247388/#post-1656727)
Кидал тебе такой код:

Lua:
local sampev = require 'lib.samp.events'

local blockedEvents = {
    "event.arizonahud.updateHotKeysNotificationVisibility",
    "event.arizonahud.setHotKeysInformation"
}

local function containsBlockedEvent(str)
    for _, evt in ipairs(blockedEvents) do
        if str:find(evt, 1, true) then
            return true
        end
    end
    return false
end

addEventHandler("onReceivePacket", function(id, bs)
    if id ~= 220 then return end

    raknetBitStreamIgnoreBits(bs, 8)
    local pktType = raknetBitStreamReadInt8(bs)
    if pktType ~= 17 then return end
    raknetBitStreamIgnoreBits(bs, 32)

    local len = raknetBitStreamReadInt16(bs)
    local encoded = raknetBitStreamReadInt8(bs)

    local data
    if encoded ~= 0 then
        data = raknetBitStreamDecodeString(bs, len + encoded)
    else
        data = raknetBitStreamReadString(bs, len)
    end

    if not data then return end

    if data:find("window.executeEvent", 1, true) and containsBlockedEvent(data) then
        return false
    end
end)

Замени в нем

Lua:
local blockedEvents = {
    "event.arizonahud.updateHotKeysNotificationVisibility",
    "event.arizonahud.setHotKeysInformation"
}

На:

Lua:
local blockedEvents = {
    "event.arizonahud.updateHotKeysNotificationVisibility",
    "event.arizonahud.setHotKeysInformation",
    "event.hud.setWarStatsVisibility"
}


Тогда будет работать как и то что было в прошлой теме, так и то что ты попросил в этой
 
  • Влюблен
Реакции: JokerEnergy