[PAID] Traffic Control Script

This scripts allows you to control traffic

|-------------------------------------|------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 150 |
| Requirements | QBCore |
| Support | Yes |

2 Likes

I recommend making the framework code, open so people can edit it to fit their own framework.

The only things in here related to framework should be job check and item registration, which, that code if escrowed, doesn’t need to be as that isn’t proprietary code to your scripting.

Otherwise I have to oblige, will you be making an ESX version?

1 Like

I will think about it , but i have no clue how esx works

How do you open the menu?

by using one of the following items :

  • the beacon
  • the barrier
  • the traffic sign
1 Like

Honestly, its pretty much the exact same as QB.

https://documentation.esx-framework.org/tutorials/sharedevent/

ESX = exports[“es_extended”]:getSharedObject()
should look recognizable compared to QB’s

ESX.RegisterUsableItem(item, cb)
similar to
QB.Functions.CreateUsableItem() or w/e that function is
Alternatively, there are servers using ox_invnetory which has its own method of creating usable items and utilizing exports independent of framework.

Any QB functions for notif’s or menus should be exposed so people can replace those with their menu’s of choice.

All of your functions responsible for controlling traffic behavior should be escrowed, and everything else should be editable.

I understand protecting your work and I 100% support that, but as developers, we need to either: A. dev around the needs of our customers and their environments
or B. Make the code dev friendly for them to implement into their suitable framework.

This script looks really good, I hope you take what I’ve said into consideration.

(again, idk what is and isn’t escrowed in your script so you may have done this already, so I apologize for this rant if you have :stuck_out_tongue: )

1 Like

I always welcome feedback :smiley:
more then a few people now have asked be for a esx version so it will defenitly be something that i will do :slight_smile:

Normaly i fully escrow my scripts, but i make extremely customizable configs , it requires more code for different settings , but like that i do keep my code protected while giving people to option to edit it to their needs :slight_smile:

Within a week / 2 weeks the esx version should be placed onto my tebex :slight_smile:

Thanks again for the help and advise !

ESX version please.

This will come soon !

1 Like

is there a list of the events so we can add them to radial menu if we don’t want to use items
?

I like the idea :slight_smile:
just pushed an update for the script today so it can take a bit , but i will create this option in the next update !

any update on the esx version?

bump?