Помогите с кодом

AntiHero

Участник
Автор темы
104
6
if testCheat('b') and not sampIsDialogActive() and not sampIsChatInputActive() then
sampSendChat('/blind')

Как в данном коде, указать что-бы была клавиша "F2"?
 
Решение
Lua:
if wasKeyPressed(113) and not sampIsDialogActive() and not sampIsChatInputActive() then
sampSendChat('/blind')
d881ae6765ec894f70ca0291f981dba5.jpg