Почему не работает самый легкий скрипт?

Решение
Lua:
require "lib.moonloader"
local keys = require "vkeys"

function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("Скрипт /lock успешно загружен", 0xFFF0)
while true do
wait(0)
    if isKeyJustPressed(0x4C) then-- это поменяй
        sampProcessChatInput("/lock")
    end
end
end

ice_ice

Участник
62
14
Lua:
require "lib.moonloader"
local keys = require "vkeys"

function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("Скрипт /lock успешно загружен", 0xFFF0)
while true do
wait(0)
    if isKeyJustPressed(0x4C) then-- это поменяй
        sampProcessChatInput("/lock")
    end
end
end
 
  • Нравится
Реакции: Kirkjubaijaarklaustur

dendy.

Активный
347
68
Lua:
require "lib.moonloader"
local keys = require "vkeys"

function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("Скрипт /lock успешно загружен", 0xFFF0)
while true do
wait(0)
    if isKeyJustPressed(0x4C) then-- это поменяй
        sampProcessChatInput("/lock")
    end
end
end
Не упел -_-