Ищу как забиндить команду в сампфункс

Kotey.Kotya

Участник
Автор темы
45
3
Хочу забиндить команду с самп функса чтоб можно было юзать на кнопку
 

Letovv

Активный
240
60
на сф хз, вот на луа
 
  • Bug
Реакции: 0afd:68
D

deleted-user-411329

Гость
Lua:
require 'lib.moonloader'
local vk = require 'vkeys'

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if not sampIsCursorActive() and wasKeyPressed(vk.VK_J) then runSampfuncsConsoleCommand('КОМАНДА') end
    end
end
ля я нуб лютый можно пж версию на 2 клавиши?
 

Я кавказец

Известный
439
107
Lua:
require 'lib.moonloader'
local vk = require 'vkeys'

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if not sampIsCursorActive() and wasKeyPressed(vk.VK_SHIFT) and wasKeyPressed(49) then runSampfuncsConsoleCommand('КОМАНДА') end
    end
end
По идеи так должно работать. С телефона пишу так что низнаю
 
  • Bug
Реакции: shitcodes
D

deleted-user-411329

Гость
Lua:
require 'lib.moonloader'
local vk = require 'vkeys'

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if not sampIsCursorActive() and wasKeyPressed(vk.VK_SHIFT) and wasKeyPressed(49) then runSampfuncsConsoleCommand('КОМАНДА') end
    end
end
По идеи так должно работать. С телефона пишу так что низнаю
ля чувак да ты гений я же написал
1626700479794.png
 

shitcodes

Известный
1,430
661
  • Нравится
Реакции: deleted-user-411329