- 83
- 5
- Версия MoonLoader
- .027.0-preview
Как сделать так чтобы этой командой не спамило, а выполняло с кулдауном в 1 секунду?
Я про
elseif hp < 160 then
sampSendChat('/usedrugs 8')
Lua:
function main()
ffi.C.GetWindowRect(ffi.C.GetActiveWindow(), rcClip);
ffi.C.ClipCursor(rcClip);
while true do
wait(0)
if not sampIsChatInputActive() then
hp = getCharHealth(PLAYER_PED)
if isKeyJustPressed(18) then
sampSendChat('/usedrugs 8')
setGameKeyState(21, 255)
setGameKeyState(21, 0)
elseif hp < 160 then
sampSendChat('/usedrugs 8')
wait(50)
setGameKeyState(21, 255)
setGameKeyState(21, 0)
end
end
end
end
Я про
elseif hp < 160 then
sampSendChat('/usedrugs 8')