🚦 [Release] [Free] Traffic Hack

forum_post_template

Description

Hack a traffic light by using the “third-eye” mechanic. Hacking the light turns it green for X amount of time. Upon completing the hack, the traffic light cycles through the different lights once as a display of success.

Dependencies

Howdy’s Hack Minigame
qb-target

Information

A known issue is that peds don’t react to the change of light.
I don’t know a way around this issue unless you’d change the driving style of nearby peds.

Very simple resource, far from perfect. Hopefully, it can help someone with something.

Feel free to edit the code and change it to your liking.
Don’t redistribute this resource claiming it to be yours.

Thanks to @AvaN0x for the assistance.

Showcase & Download

Video Showcase
Github Download

Other resources that you may enjoy;
Blips
Teleport
Autopilot
Drive Mode
Vehicle Boost

14 Likes

Cool release :partying_face:

1 Like

Hello, nice release !
I think there might be an issue with server sync, when the event pl-traffichack:changeLights is triggered, other players can’t know which object is the traffic light because it is not passed with it.

1 Like

Thank you for noticing @AvaN0x.

hi nice release bro is there any way to make it to hack from a distance like wtch dogs and send a alert to police

2 Likes

You could technically do that with raycasting, yes.

can you make a example how to make it

Looks awesome. Good job.

1 Like

You’re welcome, I’ll make you a PR about this.

EDIT: PR done

1 Like

Hmm it’s a bit harder than I thought because default traffic lights seems to be considered as local object and not network object, so ObjToNet do not get its id. :thinking:

I have an idea of how this could be done though.

EDIT: PR done

2 Likes

This is a cool script, nice job!

1 Like