Configuration
Configuration options for txos_badge
Config = {}
Config.Options = {
CacheTime = 60, -- How often should the job cache be updated? (60 = 60 Seconds)
CheckJob = 5, -- how often to check if the user has job? (5 = 5 Seconds)
ShowDistance = 6.0, -- Distance to other players to be able to show your badge to them
BossJob = {'police', 4}, -- {'job_name', grade}
Animation = {"paper_1_rcm_alt1-9", "player_one_dual-9", "prop_fib_badge", "cellphone@", "cellphone_text_in"},
openTime = 4, -- how long is the badge open (Seconds)
OfficeSettings = {
BadgeOffice = vector3(447.92, -973.45, 30.69), -- Location of the boss menu
MarkerDistance = 15.0, -- How close the ped need to be before the marker appears (Only if UseTarget is false)
DisplayDistance = 1.5, -- How close the ped need to be before the Text appears (Only if UseTarget is false)
DrawMarkerColor = {34, 67, 153, 200}, -- Drawmarker Color (Only if UseTarget is false)
},
Menu = { -- Menu Color Settings
MenuTitleBox = {31, 116, 207,255}, -- Title Box Color (r,g,b,a)
ButtonHover = {31, 116, 207,155} -- Button Hover Color (r,g,b,a)
},
Pedshot = { -- Dont touch this if you dont know what you are doing!
x = 0.885,
y = 0.375,
width = 0.045,
height = 0.076
},
}
Strings = {
-- Logging
['discord_abuse'] = 'Player **%s** (**%s**) tried to abuse TXOS_Badge to access menu', -- (name, PlayerId)
['discord_log_added'] = 'Player **%s** (**%s**) added ID **%s** to the badge system', -- (name, PlayerId, Target Id)
['discord_log_edited'] = 'Player **%s** (**%s**) edited ID **%s** badge number to **%s**', -- (name, PlayerId, Target Id, Badge Number)
['discord_log_removed'] = 'Player **%s** (**%s**) removed ID **%s** from the badge system', -- (name, PlayerId, Target Id)
-- Boss Menu
['bossmenu_title'] = 'Badge Register',
["add_player"] = "Recruit Officer",
["add_player_desc"] = "Add an officer to the police badge registry",
["edit_player"] = "Edit Badge Number",
["edit_player_desc"] = "Edit an existing officer in the badge register",
["show_officers"] = "Show Officers",
["show_officers_desc"] = "All recruited officers, in one list",
["officer_list_desc"] = "Click to edit",
["remove_player"] = "Remove Officer",
["remove_player_desc"] = "Remove an officer from the badge register",
['open_bossmenu'] = 'Badge Register',
-- Badge Menu Settings
['menu_title'] = 'Police Badge',
['see_badge'] = 'See Badge',
['show_badge'] = 'Show Badge',
['close_menu'] = 'Close',
-- Source Strings
['added_player'] = 'Officer %s was added to the badge registry',
['edited_player'] = 'Officer %s badge number was changed to %s',
['removed_player'] = '%s had his badge removed from the badge register',
['already_open'] = 'You already have your badge open',
-- Target Strings
['received_badgenumber'] = 'You were added to the badge registry.',
['received_new_badgenumber'] = 'Your badge number was changed to %s',
['got_removed'] = 'You had your badge taken away.',
-- Error Strings
['no_badge'] = 'You dont have a badge to show.',
['already_exists'] = 'ID %s is already registered in the badge registry',
['error_found'] = 'Could not find any data content for ID %s',
['player_not_found'] = 'Could not find the person',
['invalid'] = 'Not Valid',
['need_badgenumber'] = 'The badge number was not filled in.',
['no_near'] = 'No players nearby',
['not_allowed'] = 'You do not have access.',
}
Last updated