FiveM auto process
Posted: 13 Mar 2024, 10:16
i want a script that can run when i play fiveM its an afk script so i want it to do following
when startet it will press F2
then it will grap an item at x,y
and drag it to x1,y1 and release
then it will wait for 6 sec and start all over again
it would be nice if it could be started and stop from this window
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.]
when startet it will press F2
then it will grap an item at x,y
and drag it to x1,y1 and release
then it will wait for 6 sec and start all over again
it would be nice if it could be started and stop from this window
Code: Select all
#SingleInstance, Force
Gui, Add, Button, x0 y21 w121 h29 gstartstop vsstoggle, Start
Gui, Add, Button, x160 y21 w121 h29 gover, E&xit
gui, show, w281 h50
loop {
while toggle {
if !toggle
break
sleep, 500
if !toggle
break
}
}
return
startstop:
toggle := !toggle
GuiControl,, sstoggle, % toggle ? "Stop" : "Start"
return
over:
GuiClose:
GuiEscape:
ExitApp
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.]