[ESX] JOB STAR SCRIPT - SIMPLE

Alright, check this out:

NEW RELEASE

Super Simple Job Star Script for ESX

What it does:

  • Shows GTA-style stars for Police Officers Online
  • Made for ESX
  • You can change the size, position, and jobs it works with
  • That’s pretty much it

Why I made this:

I saw a server using something like this and wanted it for myself. The only script I found cost a couple of bucks, and since I’m not made of money, I just made my own at 2 am. The code’s a little messy, but hey, it works!

I’m making it totally free, so have fun with it!

Preview:

Download: Releases · anoxidus/anx-jobstar · GitHub

Q: Why no QB?

  • A: Because I dont want to lmao
Code is accessible Yes
Lines (approximately) 100
Requirements ESX
4 Likes

this is cool what would happen if theres 25 or more online?

depends on your configuration, if you set the 5th star to for example 18 cops, and more than 18 will be online it just stays on 5 stars

You should optimize this resource

Numbers of callbacks made every 7.5s:

  • 100 players and 1 job: 100
  • 200 players and 2 jobs: 400

Try to cache the number of police and only check it every few seconds, right now you are checking the number of police for every single one of those callbacks, and you could remove the callbacks too, just TriggerClientEvent with the data and its done!

But there is other ways to do it!

1 Like