(2€) [ESX] Job Tracker

A script by CS.AK

No reviews yet.
(2€) [ESX] Job Tracker main image

Price

Unknown

Full Description

Advanced Player & Vehicle Tracker Script

This highly flexible and customizable tracker script allows you to track the position of players in real time. It offers a variety of configuration options to customize it perfectly to your server. Whether you want to support police, emergency services, mechanics or other jobs - this script is the ideal solution!

:gear: Custom Blip Types - Can it be deactivated ? :white_check_mark:
Create custom blip types for specific vehicles

Example:
radar_gang_vehicle radar_bicycle radar_gang_vehicle_bikers radar_plane_drop radar_helicopter radar_player_boat radar_tank radar_mini_sub

:gear: Custom Siren Types - Can it be deactivated ? :white_check_mark:
Create custom siren blip types for specific vehicles

Example:
ambulance firefighter mechanic bike

:gear: Blacklisted Jobs
Set blacklisted jobs that cannot use the tracker

:gear: Death Event / Revive Event
Set your own death / revive event (useful if you are not using esx_ambulancejob)

:gear: Interior Detection - Can it be deactivated ? :white_check_mark:
when the player enters an interior (not for mlos) the blip stays in the same place and changes to a house blip

:gear: Water Detection - Can it be deactivated ? :white_check_mark:
If the player enters the water, the tracker will be deactivated. Once the player is out of the water again, the tracker will be reactivated

:gear: Death Detection - Can it be deactivated ? :white_check_mark:
If the player dies, the tracker will be deactivated. If the player is revived, the tracker will be reactivated

:gear: Update Interval
Set the update interval for live tracking

:gear: Command, Item or Trigger
You can activate the tracker via item, command or trigger

:gear: Custom Inventory Integration
You can activate the tracker via item, command or trigger

:gear: Nofication Locales - Can it be deactivated ? :white_check_mark:
Full customization of all notifications and messages (e.g. tracker activation, deactivation, death, water events, etc.).

:gear: Custom Notification
Set your own notifaction

:gear: Blip Settings
shortrange
heading indicator
scale
circle color
name (fivem name, character name, job data)

Config
Config = {}

Config.Notify = function(msg, source)
    if IsDuplicityVersion() then
        TriggerClientEvent('esx:showNotification', source, msg)
--[[         TriggerClientEvent("ws_notify", source, "info", "Tracker", msg, 5000) ]]
    else
    ESX.ShowNotification(msg)
--[[         TriggerEvent("ws_notify", "info", "Tracker", msg, 5000) ]]
    end
end

Config.onPlayerDeathEvent = "esx:onPlayerDeath"
Config.onPlayerReviveEvent = "esx_ambulancejob:revive" -- wasabi_ambulancejob -->> wasabi_ambulance:revive <<--

Config.Settings = {
    refreshInterval = 2,

    blacklistedJobs = {
        ["unemployed"] = true,
    },

    trackerItem = "tracker",

    command = {
        enabled = true,
        name = "gps",
    },

    blipTypes = {
        ["bike"] = 661,
        ["automobile"] = 225,
        ["boat"] = 427,
        ["heli"] = 43,
        ["plane"] = 307,
        ["submarine"] = 746,
        ["tank"] = 421,
        ["bicycle"] = 859,
    },

    sirenTypes = {
        ["ambulance"] = {
            colors = {1,0},
            delay = 500,
            models = {`ambulance`}
        },
        ["firefighter"] = {
            colors = {5,3,81},
            delay = 200,
            models = {`firetruk`}
        },
        ["police"] = {
            colors = {1,3},
            delay = 500,
            models = {`fbi`, `police` , `police2` , `police3` , `policeb` }
        },
        ["mechanic"] = {
            colors = {81,0},
            delay = 500,
            models = {`towtruck`}
        },
    },

    customBlipTypes = {
        ["tank"] = {`rhino`, `khanhali`},
        ["bicycle"] = {`bmx`, `scorcher`, `tribike`, `tribike2`, `tribike3`},
    },

    blipExtras = {
        scale = 1.0,
        shortRange = false,
        secondaryColor = {true, r=93, g=182, b=229},
        headingIndicator = true,
        interiorCheck = true,
        name = function(characterName, playerName, job)
            return "~b~"..characterName.." ~s~ [Grade "..job.grade.."]"
        end
    },

    extras = {
        ["in_water"] = {true, submergedLevel=0.58},
        ["vehicle_in_water"] = {true, submergedLevel=0.58},
        ["death"] = true,
        ["siren"] = true,
    }
}

Config.locales = {
    ["not_allowed"] = "You cannot use the tracker.",

    ["need_item"] = "You need a tracker for this.",

    ["water_entered_vehicle_self"] = "You sank like a rock with your vehicle.",
    ["water_entered_vehicle_all"] = "%s's tracker got wet and stopped sending data because it drowned.",

    ["water_left_self"] = "Your tracker has dried and is sending again.",
    ["water_left_all"] = "%s's tracker has dried and is sending again.",

    ["water_entered_self"] = "Your tracker got wet and stopped sending.",
    ["water_entered_all"] = "%s's tracker got wet and stopped sending.",

    ["death_self"] = "Your tracker has stopped sending.",
    ["death_all"] = "%s's tracker has stopped sending.",

    ["revive_self"] = "Your tracker is now sending again.",
    ["revive_all"] = "%s's tracker is now sending again.",

    ["activate_self"] = "The tracker has been activated and is now sending.",
    ["activate_all"] = "%s's tracker has been successfully activated and is now sending.",

    ["deactivate_self"] = "The tracker has been successfully stopped and is no longer sending.",
    ["deactivate_all"] = "%s's tracker has stopped sending."
}

Tebex (2€)

Code is accessible No
Subscription-based No
Lines (approximately) ~600
Requirements ESX Legacy
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily