- 23
- 3
Короче, скрипт создан как сбив на луа, но не работает. Что делать? Помогите
LUA:
local vkeys = require 'vkeys'
function main()
repeat wait(0) until isSampAvailable()
while true do wait(0)
if isKeyJustPressed(VK_V) then
local hp = getCharHealth(PLAYER_PED)
if hp < 10 then
sampSendChat('/us 15')
end
if hp < 20 then
sampSendChat('/us 14')
end
if hp < 30 then
sampSendChat('/us 13')
end
if hp < 40 then
sampSendChat('/us 12')
end
if hp < 50 then
sampSendChat('/us 11')
if hp < 60 then
sampSendChat('/us 10')
end
if hp < 70 then
sampSendChat('/us 9')
end
if hp < 80 then
sampSendChat('/us 8')
end
if hp < 90 then
sampSendChat('/us 7')
end
if hp < 100 then
sampSendChat('/us 6')
end
if hp < 110 then
sampSendChat('/us 5')
end
if hp < 120 then
sampSendChat('/us 4')
end
if hp < 130 then
sampSendChat('/us 3')
end
if hp < 140 then
sampSendChat('/us 2')
end
if hp < 150 then
sampSendChat('/us 1')
end
end
end