Teach me how to make a simple binds

Beastro

Новичок
Автор темы
1
0
I want to make multiple binds:
1. Lock
2. Vstorage
3. stats
tell me how to set up moonloader and libraries i need for it. Then tell me how to make the mod
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
lua:
require 'lib.moonloader'
local vk = require 'vkeys'

local binds = {
    {vk.VK_L, '/lock'},
    {vk.VK_K, '/key'},
    {vk.VK_P, '/phone'},
    {vk.VK_1, '/usemed'},
    {vk.VK_X, '/style'},
    {vk.VK_9, '/mask'},
    {vk.VK_0, '/balloon'},
    {vk.VK_4, '/armour'},
    {vk.VK_3, '/anim 3'},
}

function main()
    while not isSampAvailable() do wait(0) end
    
    while true do
        wait(0)
        for i = 1, #binds do
            if wasKeyPressed(binds[i][1]) and not sampIsCursorActive() then sampSendChat(binds[i][2]) end
        end
    end
end

tell me how to set up moonloader and libraries i need for it. Then tell me how to make the mod

1643384993786.png
Скачать - Download
 
  • Нравится
Реакции: asprt