- 10
- 0
Помогите найти юз аптечки по типу как нарко на x
https://www.blast.hk/threads/14068/ типо такого ток с аптечкой.Буду очень благодарен
https://www.blast.hk/threads/14068/ типо такого ток с аптечкой.Буду очень благодарен
Помогите найти юз аптечки по типу как нарко на x
https://www.blast.hk/threads/14068/ типо такого ток с аптечкой.Буду очень благодарен
local key = 'vkeys'
local moonloader = require 'lib.moonloader'
local sampev = require 'samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('Med Helper | Is Loaded!', -1)
while true do
wait(0)
if wasKeyPressed(key.VK_X) then
sampSendChat('') -- Сюда команду Аптечки.
end
end
end
пишу1:local key = 'vkeys' local moonloader = require 'lib.moonloader' local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end sampAddChatMessage('Med Helper | Is Loaded!', -1) while true do wait(0) if wasKeyPressed(key.VK_X) then sampSendChat('') -- Сюда команду Аптечки. end end end
Попробуй, это по нажатию кнопки будет юзаться аптечка, только в sampSendChat впиши команду.
local key = 'vkeys'
local moonloader = require 'lib.moonloader'
local sampev = require 'samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('Med Helper | Is Loaded!', -1)
while true do
wait(0)
if wasKeyPressed(key.VK_X) then
sampSendChat('/usemed')
end
end
end
Сори, моя вина.пишу
не работает1:local key = 'vkeys' local moonloader = require 'lib.moonloader' local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end sampAddChatMessage('Med Helper | Is Loaded!', -1) while true do wait(0) if wasKeyPressed(key.VK_X) then sampSendChat('/usemed') -- Сюда команду Аптечки. end end end
local key = 'vkeys'
local moonloader = require 'lib.moonloader'
local sampev = require 'samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('Med Helper | Is Loaded!', -1)
while true do
wait(0)
if wasKeyPressed(key.VK_X) then
sampSendChat(/usemed) -- Сюда команду Аптечки.
end
end
end
Не знаю почему не работает создал файл .lua в игре пишет что Med Helper | Is Loaded!.Нажимаю на x ничего не происходит.Хотя все естьСори, моя вина.
Вот попробуй.Lua:local key = 'vkeys' local moonloader = require 'lib.moonloader' local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end sampAddChatMessage('Med Helper | Is Loaded!', -1) while true do wait(0) if wasKeyPressed(key.VK_X) then sampSendChat(/usemed) -- Сюда команду Аптечки. end end end
щас попробую
Не знаю почему не работает создал файл .lua в игре пишет что Med Helper | Is Loaded!.Нажимаю на x ничего не происходит.Хотя все есть
local key = 'vkeys'
local moonloader = require 'lib.moonloader'
local sampev = require 'samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('Med Helper | Is Loaded!', -1)
while true do
wait(0)
if isKeyJustPressed(0x58) then
sampSendChat('/usemed')
end
end
end
Вотщас попробую
Не знаю почему не работает создал файл .lua в игре пишет что Med Helper | Is Loaded!.Нажимаю на x ничего не происходит.Хотя все есть
Заработало спасибоLua:local key = 'vkeys' local moonloader = require 'lib.moonloader' local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end sampAddChatMessage('Med Helper | Is Loaded!', -1) while true do wait(0) if isKeyJustPressed(0x58) then sampSendChat('/usemed') end end end
Вот
А как зделать чтобы когда чат открыт не юзалась аптекаLua:local key = 'vkeys' local moonloader = require 'lib.moonloader' local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end sampAddChatMessage('Med Helper | Is Loaded!', -1) while true do wait(0) if isKeyJustPressed(0x58) then sampSendChat('/usemed') end end end
Вот
А как зделать чтобы когда чат открыт не юзалась аптека
require "lib.moonloader"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
if isKeyJustPressed(VK_X) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
sampSendChat("/usemed")
end
end
end
А как зделать чтобы когда чат открыт не юзалась аптека
просто когда пишешь слово то юзаеться аптека
local key = 'vkeys'
local moonloader = require 'lib.moonloader'
local sampev = require 'samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('Med Helper | Is Loaded!', -1)
while true do
wait(0)
if isKeyJustPressed(0x58) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
sampSendChat('/usemed')
end
end
end
почему не сделать проверку на активный курсор?Lua:local key = 'vkeys' local moonloader = require 'lib.moonloader' local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end sampAddChatMessage('Med Helper | Is Loaded!', -1) while true do wait(0) if isKeyJustPressed(0x58) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then sampSendChat('/usemed') end end end