sampTextdrawCreate

Rice.

Известный
Автор темы
Модератор
1,753
1,661
Версия MoonLoader
.026-beta
Нужно, когда нажата клавиша W, то текстдрав есть. А когда она не нажата, то его нету. Помогите пожалуйста!


require 'lib.moonloader'

function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("{00FA9A}[{FFFFFF}FS{00FA9A}]{FFFFFF} Loaded{00FA9A}!", 0xFFFFFF)


while true do
wait(0)
if wasKeyPressed(VK_W) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then sampTextdrawCreate(1, "Зажата W", 570, 190)
else
if not wasKeyPressed(VK_W) then sampTextdrawCreate(1, "", 570, 190)

end
end
end
end
 

Rice.

Известный
Автор темы
Модератор
1,753
1,661
Чтобы было удобнее:
1616679572269.png