Луа Скрипт не работает

quent

Новичок
Автор темы
8
4
Версия MoonLoader
.026-beta
Привет можете сказать почему не работает? если возможно сказать где ошибка и как исправить проста и когда захожу в игру в там даже сообщение которые поставил в sampAddChatMessage не показаваются
Lua:
require "lib.moonloader"
local keys - require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded()
        then return
    end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage('Скрипт Загружен Успешно.Автор:gangsta#9873', 8A2BE2)
    while true do
        wait(0)
        if KeyJustPressed(VK_Q) then
            sampAddChatMessage("хуль сбиваешь",main_color)
            sampSendChat("/anim 7"main_color)
        end
        if isKeyJustPressed(VK_L) then
            sampSendChat("/lock"main_color)
        end
    end
end
 
Последнее редактирование модератором:
  • Ха-ха
Реакции: qdIbp
Решение
Lua:
require "lib.moonloader"
local keys = require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage('Скрипт Загружен Успешно.Автор:gangsta#9873', 0x8A2BE2)
    while true do
        wait(0)
        if isKeyJustPressed(keys.VK_Q) then
            sampAddChatMessage("хуль сбиваешь", -1)
            sampSendChat("/anim 7")
        end
        if isKeyJustPressed(keys.VK_L) then
            sampSendChat("/lock")
        end
    end
end

PanSeek

t.me/dailypanseek
Всефорумный модератор
899
1,746
Lua:
require "lib.moonloader"
local keys = require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage('Скрипт Загружен Успешно.Автор:gangsta#9873', 0x8A2BE2)
    while true do
        wait(0)
        if isKeyJustPressed(keys.VK_Q) then
            sampAddChatMessage("хуль сбиваешь", -1)
            sampSendChat("/anim 7")
        end
        if isKeyJustPressed(keys.VK_L) then
            sampSendChat("/lock")
        end
    end
end