Можете луа скрипт изменить чтобы при диалогах он не срабатывал?

Kuzaku

Участник
Автор темы
131
8
Скачал скрипт на большой прижок на велике, когда пишу в чат и нажимаю клавишу активации "С" он начинает высоко прыгать. Можете изменить чтобы при открытом чате и диалогах он не срабатывал
 

Вложения

  • Bike Jump Bug.lua
    815 байт · Просмотры: 6

VRush

https://t.me/vrushscript
Проверенный
2,356
1,114
Lua:
script_name("Bike Jump Bug")
script_author("MaksQ")

require "lib.moonloader"

function main()
    while not isSampAvailable() do wait(100) end
    while true do wait(0)

        if not isPauseMenuActive() and not sampIsDialogActive() and not sampIsChatInputActive() and isCharOnAnyBike(PLAYER_PED) then
            local bike = {[481] = true, [509] = true, [510] = true}
            if bike[getCarModel(storeCarCharIsInNoSave(PLAYER_PED))] and isKeyJustPressed(VK_C) then
                setVirtualKeyDown(0x11, true)
                wait(300)
                setVirtualKeyDown(0x11, false)
                local veh = storeCarCharIsInNoSave(PLAYER_PED)
                local cVecX, cVecY, cVecZ = getCarSpeedVector(storeCarCharIsInNoSave(PLAYER_PED))
                if not isCarInAirProper(veh) and cVecZ < 7.0 then applyForceToCar(storeCarCharIsInNoSave(PLAYER_PED), 0.0, 0.0, 0.44, 0.0, 0.0, 0.0)

end end end end end
 
  • Влюблен
Реакции: ababa3123

Kuzaku

Участник
Автор темы
131
8
Lua:
script_name("Bike Jump Bug")
script_author("MaksQ")

require "lib.moonloader"

function main()
    while not isSampAvailable() do wait(100) end
    while true do wait(0)

        if not isPauseMenuActive() and not sampIsDialogActive() and not sampIsChatInputActive() and isCharOnAnyBike(PLAYER_PED) then
            local bike = {[481] = true, [509] = true, [510] = true}
            if bike[getCarModel(storeCarCharIsInNoSave(PLAYER_PED))] and isKeyJustPressed(VK_C) then
                setVirtualKeyDown(0x11, true)
                wait(300)
                setVirtualKeyDown(0x11, false)
                local veh = storeCarCharIsInNoSave(PLAYER_PED)
                local cVecX, cVecY, cVecZ = getCarSpeedVector(storeCarCharIsInNoSave(PLAYER_PED))
                if not isCarInAirProper(veh) and cVecZ < 7.0 then applyForceToCar(storeCarCharIsInNoSave(PLAYER_PED), 0.0, 0.0, 0.44, 0.0, 0.0, 0.0)

end end end end end
можешь кинуть именно в видео луа скрипта? просто я бы не просил людей если бы имел на ПК программу луа