Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
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('') -- Сюда команду Аптечки.
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
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
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 isKeyJustPressed(0x58) 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) 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) 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
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