GTA 5 Online Horn Script - Series X
6 posts
• Page 1 of 1
GTA 5 Online Horn Script - Series X
Can someone please help me make a horn script for GTA 5 Online, I just want L3 / Button 9 to be rapid fire at highest optimal speed for Series X
-
F40LM - Staff Sergeant
- Posts: 13
- Joined: Tue Jul 05, 2016 6:45 pm
Re: GTA 5 Online Horn Script - Series X
- Code: Select all
main { set_val(BUTTON_9, time_active(BUTTON_9)%100<40); }
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: GTA 5 Online Horn Script - Series X
Thanks so much!
-
F40LM - Staff Sergeant
- Posts: 13
- Joined: Tue Jul 05, 2016 6:45 pm
Re: GTA 5 Online Horn Script - Series X
Mad wrote:
- Code: Select all
main { set_val(BUTTON_9, time_active(BUTTON_9)%100<40); }
ok so I got round to finally installing this and when I look on the monitor it shows as always being pressed without me touching the controller, could you make it so that it only activates when I hold button 9, thanks in advance!
My script looks like this
#pragma METAINFO("HORN GTA", 1, 0, "<author_name>")
main { set_val(BUTTON_9, time_active(BUTTON_9)%100<40); }
-
F40LM - Staff Sergeant
- Posts: 13
- Joined: Tue Jul 05, 2016 6:45 pm
Re: GTA 5 Online Horn Script - Series X
try this:
For easier timing control (more common code) you can use a combo instead:
- Code: Select all
main { if (is_active(BUTTON_9)) set_val(BUTTON_9, time_active(BUTTON_9)%100<40); }
For easier timing control (more common code) you can use a combo instead:
- Code: Select all
main {
if (is_active(BUTTON_9)) combo_run(cHorn);
}
combo cHorn {
set_val(BUTTON_9, 100); wait(40); // press for 40ms
set_val(BUTTON_9, 0); wait(60); // release for 60ms
}
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: GTA 5 Online Horn Script - Series X
Scachi wrote:try this:
- Code: Select all
main { if (is_active(BUTTON_9)) set_val(BUTTON_9, time_active(BUTTON_9)%100<40); }
For easier timing control (more common code) you can use a combo instead:
- Code: Select all
main {
if (is_active(BUTTON_9)) combo_run(cHorn);
}
combo cHorn {
set_val(BUTTON_9, 100); wait(40); // press for 40ms
set_val(BUTTON_9, 0); wait(60); // release for 60ms
}
Thank you so much browie, this does exactly what I want it to do :-) and I will try to look at that creating scripts thingie too
-
F40LM - Staff Sergeant
- Posts: 13
- Joined: Tue Jul 05, 2016 6:45 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 64 guests