- Версия MoonLoader
- .026-beta
Помогите, пожалуйста.
Ошибка:
Код:
require "lib.moonloader"
require "lib.sampfuncs"
local rkeys = require 'rkeys'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage('работает')
while true do
wait(0)
if ifKeyJustPressed(101) then
sampSetChatInputEnabled(true)
sampSetChatInputText("твой текст")
end
end
Лог:
[ML] (error) setm.lua: C:\Users\Denzy\Desktop\dark-purple gta\moonloader\setm.lua:12: attempt to call global 'ifKeyJustPressed' (a nil value)
stack traceback:
C:\Users\Denzy\Desktop\dark-purple gta\moonloader\setm.lua: in function <C:\Users\Denzy\Desktop\dark-purple gta\moonloader\setm.lua:6>
[ML] (error) setm.lua: Script died due to an error. (0F440C5C)