@Fakes

Как сделать условие для Jua?

require "lib.moonloader"

local keys = require "vkeys"

function main()

  if not isSampLoaded() or not isSampfuncsLoaded()
    then return
  end

  while not isSampAvailable()
  do
    wait()
  end

  sampAddChatMessage('CarHelp активен', 0x800080)

  while true do
    wait(0)

    if isKeyJustPressed(VK_L)
    then 
      sampSendChat('/lock')
    elseif isKeyJustPressed(VK_K)
    then
      sampSendChat('/key')
    end

  end

end


Подскажите сюда условие что бы при открытии чата в игре lua не работал.
  • Вопрос задан
  • 118 просмотров
Пригласить эксперта
Ответы на вопрос 1
@dimkafmlovediankafm
Бабы - дуры
if isKeyJustPressed(VK_L) and not sampIsChatInputActive() then 
      sampSendChat('/lock')
elseif isKeyJustPressed(VK_K) and not sampIsChatInputActive() then
      sampSendChat('/key')
end
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы