Lua script

Статус
В этой теме нельзя размещать новые ответы.

jok3r443

Новичок
Автор темы
1
0
Hey can someone help me create a lua script?
For example, on screen appears "Press MOUSE1" So when that appears i want my script to automaticaly press it. Please help.

Its like a fishing bot, so when a fish bites. On screen appears text "PRESS MOUSE1". So when that text appears i want my script to press mouse1
 
Последнее редактирование:
  • Эм
Реакции: YarikVL
Решение
in the middle of the screen.
LUA:
local sampev = require 'lib.samp.events'

function sampev.onDisplayGameText(style, time, text)
  if string.match(text, "your text") then setVirtualKeyDown(LBUTTON, true) wait(150) setVirtualKeyDown(LBUTTON, false) end
end
when the text appeared you just need to press the left mouse button?
if yes, then I reset the code above

7 СМЕРТНЫХ ГРЕХОВ

Известный
524
163
in the middle of the screen.
LUA:
local sampev = require 'lib.samp.events'

function sampev.onDisplayGameText(style, time, text)
  if string.match(text, "your text") then setVirtualKeyDown(LBUTTON, true) wait(150) setVirtualKeyDown(LBUTTON, false) end
end
when the text appeared you just need to press the left mouse button?
if yes, then I reset the code above
 
Статус
В этой теме нельзя размещать новые ответы.