Configuration
How to configure the Script to your liking
Config = {
refreshRate = 10000, -- in ms (10000 = 10 seconds)
Set this to however often you want to refresh the map blips. Be aware that lowering the refresh rate too much, for example by setting it to 1, the script could become less performant.
Blips = {
{
id = "mechanic", -- New unique identifier by which we will handle the blip creation
label = "Mechanics", -- Blip name on map
job = "mechanic", -- Job associated with the blip
coords = vector3(-327.6184, -135.9356, 39.0097),
requiredCount = 1,
appearance = {
sprite = 446, -- Symbol (https://docs.fivem.net/docs/game-references/blips/)
scale = 0.7, -- Scale from 0.0 - x.0
colorAvailable = 2, -- Green, if enough employees
colorUnavailable = 1, -- Red, if not enough employees
display = 4
}
},
Configuring a blip is fairly easy, assign a unique id to it, choose a label (shown on map) as well as the job connected to this blip. If the on duty amount of players is greater or equal to your required count, the blip will change to its colorAvailable and vice versa.
Last updated