AntiHero Участник Автор темы 104 6 6 Янв 2025 #1 if testCheat('b') and not sampIsDialogActive() and not sampIsChatInputActive() then sampSendChat('/blind') Как в данном коде, указать что-бы была клавиша "F2"?
if testCheat('b') and not sampIsDialogActive() and not sampIsChatInputActive() then sampSendChat('/blind') Как в данном коде, указать что-бы была клавиша "F2"?
Решение stach 6 Янв 2025 Lua: if wasKeyPressed(113) and not sampIsDialogActive() and not sampIsChatInputActive() then sampSendChat('/blind')
Lua: if wasKeyPressed(113) and not sampIsDialogActive() and not sampIsChatInputActive() then sampSendChat('/blind')
yung milonov Известный 1,016 525 6 Янв 2025 #2 заменить testCheat('b') на isKeyJustPressed(0x71) номера клавиш, которые в аргументе функции можно глянуть тут: https://learn.microsoft.com/ru-ru/windows/win32/inputdev/virtual-key-codes Реакции: AntiHero Позитивный голос 0 Негативный голос
заменить testCheat('b') на isKeyJustPressed(0x71) номера клавиш, которые в аргументе функции можно глянуть тут: https://learn.microsoft.com/ru-ru/windows/win32/inputdev/virtual-key-codes
stach Известный 762 320 6 Янв 2025 Решение #3 Lua: if wasKeyPressed(113) and not sampIsDialogActive() and not sampIsChatInputActive() then sampSendChat('/blind') Реакции: AntiHero Позитивный голос 0 Негативный голос Решение
Lua: if wasKeyPressed(113) and not sampIsDialogActive() and not sampIsChatInputActive() then sampSendChat('/blind')
AntiHero Участник Автор темы 104 6 7 Янв 2025 #4 Спасибо ребята, лучшие <3 Реакции: stach Позитивный голос 0 Негативный голос