- 139
- 4
- Версия MoonLoader
- .027.0-preview
1:
script_name('Hatika')
script_author('HariX')
script_dependencies('Скрипт для теста!')
require ("lib.moonloader")
local tag = '[HATIKA] Мой создатель - HariX'
local main_color = 0xFF0000
local white = 0xFFFFFF
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait (100) end
wait(2000)
sampAddChatMessage(tag, 0xFFFFFF)
while true do
wait(0)
if wasKeyPressed(VK_L) and not sampIsCursorActive() then
sampSendChat('/lock')
else
if wasKeyPressed(VK_K) and not sampIsCursorActive() then
sampSendChat('/key')
else
if wasKeyPressed(VK_R) and isCharInAnyCar(PLAYER_PED) and not sampIsCursorActive() then
sampSendChat('/radio')
end
end
end