You can set how much rage an anklet will have, in config you will find the maximum range:
Config.Maximumboundary = 5000.0
Commands
You can use /tracker command to open the tracker system with one of the allowed jobs in config
Phone Tracker
You can decide how much time the blip to track phones will persist on game map, this is done for game purpose (sometimes this feature can be OP for police) and for performance.
In this case 5 is 25 seconds: (Current: 5 * 5000 = 25 seconds)
If you enable RpEmotes option, you need a script for animations
If you have RpEmotes you can leave the exports like this
you can change the "tablet" animation with any other animation
-- Animation
Config.EmoteTablet = function() -- You can change here events for animation
exports["rpemotes"]:EmoteCommandStart("tablet", nil)
end
Config.EmoteReset = function() -- You can change here events for animation
exports["rpemotes"]:EmoteCancel()
end
If you have a different script for animations just change the exports
-- Animation
Config.EmoteTablet = function() -- You can change here events for animation
exports["Your Export"]:??
end
Config.EmoteReset = function() -- You can change here events for animation
exports["Your Export"]:??
end
Blips Appearance
In config you can edit blips type, color, and scale
You can log when a new anklet is created and when is removed, just add your Discord Webhook link in config file
-- Log webhooks for discord
Config.WebhookNewAnklet= ""
Config.WebhookRemoveAnklet= ""
Translations
You can select with this settings what local you prefer
Config.Local = "en" -- it,es,fr,en,de Transaltion
You can add more locals, just add a code block like this in config file
Config.TranslateEN = {
blips_off = "Blips deactivated",
blips_on = "Blips activated",
leave = "Player escaped with ankle monitor: ",
invalid_limit = "Please enter a valid limit",
max_range = "Please enter a number lower as boundary. Maximum: ",
tracked = "The target already has a tracking bracelet.",
no_player = "There is no player near you",
removed = "Successfully removed the tracker",
no_tracker = "The target does not have a tracking bracelet.",
quit = "Player left the server with ankle monitor: ",
cut = "Someone cut an anklet",
success = "Done",
car_success = "Tracker connected to vehicle",
car_error = "No cars nearby",
jammer_on = "Jammer on",
}
For example:
Config.TranslateJP = {
blips_off = "Your new translation",
SQL
This script works with any db, you can adapt everything from config
The original query for phone is:
('SELECT '..Config.DbIdentifier ..' FROM '..Config.PhoneDbTable..' WHERE '..Config.DbPhoneNumber ..' = @phone_number')
Config.PhoneDbTable = "users" -- users db table
Config.DbIdentifier = "identifier" --identifier field inside users db table
Config.DbPhoneNumber = "phone_number" --phone field inside users db table
You Must add this table in your DB, If you didn't recieve SQL file:
Items and Props
You can disable game props like the anklet when you add a new anklet to a player from config
Config.Props = true --Enable props when add a new tracker
You need also to create the items that players will use with tracker system, or use existing items
Set how much time (seconds) a player need to add or remove an anklet:
Config.InstallTimes = {
Tracker = 5, -- How Many seconds will take to install the tracker
BoltCutter = 7 -- how many seconds will take to deattach the tracker
}
Notifications
Tracker system works with default esx notification system, if you have a custom script, change the export inside the config:
-- NOTIFICATION
Config.Notification = function(message, type) -- You can change here events for notifications
TriggerEvent("esx:showNotification", message, type) -- type can be "info", "error", "success"
end