kylemcshea / dream-postal

📦GoPostal Job for FiveM: Made for QB & ESX. Integrated with ox_target & qb-target for a premium gameplay experience. Elevate your server now! 🚀
https://www.youtube.com/watch?v=fSwJO3C85E0
52 stars 11 forks source link

Lock script to specific job #9

Closed kylemcshea closed 10 months ago

kylemcshea commented 10 months ago

Got this idea from the following comment - "Would be cool to be able to lock it to a specific job like GoPostal or something"

Would need to do the following...

Make a getJobScript() that can grab job from either qb-core or esx and return the string of current job.

then make sure that current job is found in the CONFIG.WHITELISTED_JOBS table we make which is a table with following struct:

[x: string]: boolean;

kylemcshea commented 10 months ago

its in baby!