Advertisement
Guest User

Untitled

a guest
Oct 24th, 2023
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.95 KB | None | 0 0
  1. CFG = {}
  2.  
  3. CFG.FRAMEWORK = 'QBCore' -- 'QBCore', 'QBX', 'ESX', 'ESXOLD' or false to disable it
  4. CFG.INVENTORY = 'qb' -- 'qb', 'ox', 'qs', 'esx' or false to disable it
  5. CFG.TARGET = false -- 'qb-target', 'qtarget', 'ox_target' or false to disable it
  6. CFG.DATABASE = 'oxmysql' -- 'oxmysql', 'mysql-async' or false to disable
  7. CFG.NOTIFY = 'ox' -- 'ox', 'qb', 'esx', 'native' or false
  8.  
  9. CFG.MENU = {
  10.     type = 'ox', -- 'ox', 'menuv'
  11.  
  12.     -- 'menuv' uses: topright (default), topleft, bottomright, bottomleft
  13.     -- 'ox' uses: top-right (default), top-left, bottom-right, bottom-left
  14.     pos = 'top-right',
  15.  
  16.     -- these settings are only for MenuV
  17.     size = 'size-125', -- menu size
  18.     colour = { r = 250, g = 20, b = 60 }, -- https://www.rapidtables.com/web/color/RGB_Color.html
  19.     banner = 'none', -- 'none', 'default', 'default_native'
  20.     banner_text = false, -- 'TEXT'
  21. }
  22.  
  23. -- RESTRICTION OPTIONS --
  24. CFG.RESTRICTIONS = {
  25.     --[[
  26.         ACE PERMS
  27.         - put this into your server cfg and edit identifier to yours
  28.  
  29.         add_ace buddy buddy allow
  30.         add_principal identifier.license:830e0a2add6393cf28f45474dbf6ac4577f0652a buddy #sheen
  31.     ]]
  32.     USE_ACE_PERMS = false, -- true / false
  33.  
  34.     --[[
  35.         JOB RESTRICTIONS (only with QBCore/QBX/ESX/ESXOLD)
  36.         - jobs and grades that have access to buddy menu
  37.         - it's disabled if ace perms are enabled
  38.     ]]
  39.     JOBS = {
  40.         -- job name, grade numbers
  41.         ['police'] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9},
  42.     }
  43. }
  44.  
  45. -- https://docs.fivem.net/docs/game-references/controls/ -- list of controls
  46. CFG.CONTROLS = {
  47.     -- AIM AND HIT THE KEY
  48.     aim = {
  49.         attack = 38, -- E
  50.         go = 47 -- G
  51.     },
  52. }
  53.  
  54. CFG.SETTINGS = {
  55.  
  56.     WEAPONS = {
  57.         taser = `weapon_stungun`,
  58.         pistol = `weapon_pistol`,
  59.         rifle = `weapon_carbinerifle`,
  60.     },
  61.  
  62.     listen_for_shots = true, -- true/false
  63.     hearing_range = 60.0, -- radius for hearing shots, i suggest 60.0 units, max is around 250.0
  64.  
  65.     insta_headshot = true, -- -- if false then headshot will deal same damage as any other body shots
  66.     max_buddies = 3, -- max registered buddies per character
  67.     blip = true, -- creates blip for your buddy on the map
  68.  
  69.     accuracy = { from = 40, to = 50 }, -- weapon accuracy %, max 100
  70.  
  71.     DELETE_BUDDY = { -- delete buddy if
  72.         buddy_dead = false, -- if u want to use this option, then disable saving of health and armor below
  73.         owner_dead = false
  74.     },
  75.  
  76.     spawn_walk = false, -- finds nearest spawn point for npc, then he starts following you
  77.    
  78.     IDLE_ANIM = {
  79.         anim = { dict = nil, name = nil, flags = nil },
  80.         scenario = 'WORLD_HUMAN_COP_IDLES',
  81.     },
  82.  
  83.     STATUS = {
  84.         -- new registered buddy spawns automatically with maxHealth
  85.         -- u can set any max values
  86.         maxHealth = 200, maxArmor = 100,
  87.    
  88.         --[[
  89.             true = it will don't save these values into database,
  90.             so players are able to respawn his buddy through menu without reviving option
  91.         ]]
  92.         disable_hp_and_armor_saving = false,
  93.    
  94.         heal = {
  95.             revive_timer = 5, -- reviving buddy
  96.    
  97.             timer = 3, -- applying bandage
  98.             amount = {from = 10, to = 25}, -- how much hp will be added to buddy
  99.             item = 'bandage',
  100.         },
  101.         armor = {
  102.             timer = 5,
  103.             amount = {from = 10, to = 25}, -- how much armor will be added to buddy
  104.             item = 'armor',
  105.         },
  106.     },
  107. }
  108.  
  109. -- BUDDIES FOR REGISTRATION --
  110. CFG.BUDDIES = {
  111.     -- label and spawn name
  112.     ['Cop'] = `s_m_y_cop_01`,
  113.     ['Male MP'] = `mp_m_freemode_01`,
  114. }
  115.  
  116. CFG.COMMANDS = {
  117.  
  118.     BINDING_SYSTEM = { -- fivem keybinding system
  119.         enable = true, -- true/false
  120.         commands = {
  121.             --[[
  122.                 - three parameters -
  123.                     command is name of command from the list below
  124.                     key is primary key for triggering
  125.                     description for bind
  126.  
  127.                 - list of usable keys
  128.                 https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
  129.             ]]
  130.  
  131.             [1] = { command = 'buddy', key = 'K', label = 'Open Buddy Menu' }, -- binding command buddy to K key (example)
  132.             -- [2] = { command = 'bdanimations', key = 'L', label = 'Open Buddy Animations' },
  133.         },
  134.     },
  135.  
  136.  
  137.     --[[
  138.         LIST OF COMMANDS
  139.         - code_name and name of command
  140.         - change only name of command if you need to!
  141.     ]]
  142.     disable = false, -- true = disable all commands
  143.  
  144.     -- main
  145.     ['register_buddy'] = 'bdregister',
  146.     ['reselect'] = 'bdreselect',
  147.     ['main_menu'] = 'buddy',
  148.     ['save_buddy'] = 'bdsave',
  149.     ['check_buddy'] = 'bdcheck',
  150.     ['spawn'] = 'bdspawn',
  151.     ['animations'] = 'bdanimations',
  152.  
  153.     -- actions
  154.     ['follow'] = 'bdfollow',
  155.     ['vehicle'] = 'bdvehicle',
  156.  
  157.     -- other
  158.     ['heal'] = 'bdheal',
  159.     ['armor'] = 'bdarmor',
  160.     ['carry'] = 'bdcarry',
  161.  
  162. }
  163.  
  164. -- ANIMATIONS --
  165. -- u can add more
  166. CFG.BUDDY_ANIMATIONS = {
  167.     --[[
  168.  
  169.         -- supports scenarios and animations, look down for examples
  170.  
  171.         FLAGS FOR ANIMATIONS:
  172.         1 = repeat animation
  173.         2 = stop on last frame of animation
  174.         0 = normal
  175.     ]]
  176.  
  177.     {
  178.         name = 'Cop Idles',
  179.         scenario = 'WORLD_HUMAN_COP_IDLES'
  180.     },
  181.     {
  182.         name = 'Cop Beacon',
  183.         scenario = 'WORLD_HUMAN_CAR_PARK_ATTENDANT'
  184.     },
  185.     {
  186.         name = 'Cop Investigate',
  187.         dict = 'amb@code_human_police_investigate@idle_a', anim = 'idle_b', flags = 1,
  188.     },
  189.     {
  190.         name = 'Crossarms',
  191.         dict = 'anim@amb@nightclub@peds@', anim = 'rcmme_amanda1_stand_loop_cop', flags = 51,
  192.     },
  193.     {
  194.         name = 'Reaching',
  195.         dict = 'move_m@intimidation@cop@unarmed', anim = 'idle', flags = 51,
  196.     },
  197.     {
  198.         name = 'Smoke',
  199.         scenario = 'WORLD_HUMAN_AA_SMOKE'
  200.     },
  201. }
  202.  
  203. CFG.WALK_STYLES = {
  204.     ["Alien"] = {"move_m@alien"},
  205.     ["Armored"] = {"anim_group_move_ballistic"},
  206.     ["Arrogant"] = {"move_f@arrogant@a"},
  207.     ["Brave"] = {"move_m@brave"},
  208.     ["Casual"] = {"move_m@casual@a"},
  209.     ["Casual2"] = {"move_m@casual@b"},
  210.     ["Casual3"] = {"move_m@casual@c"},
  211.     ["Casual4"] = {"move_m@casual@d"},
  212.     ["Casual5"] = {"move_m@casual@e"},
  213.     ["Casual6"] = {"move_m@casual@f"},
  214.     ["Chichi"] = {"move_f@chichi"},
  215.     ["Confident"] = {"move_m@confident"},
  216.     ["Cop"] = {"move_m@business@a"},
  217.     ["Cop2"] = {"move_m@business@b"},
  218.     ["Cop3"] = {"move_m@business@c"},
  219.     ["Default Female"] = {"move_f@multiplayer"},
  220.     ["Default Male"] = {"move_m@multiplayer"},
  221.     ["Drunk"] = {"move_m@drunk@a"},
  222.     ["Drunk"] = {"move_m@drunk@slightlydrunk"},
  223.     ["Drunk2"] = {"move_m@buzzed"},
  224.     ["Drunk3"] = {"move_m@drunk@verydrunk"},
  225.     ["Femme"] = {"move_f@femme@"},
  226.     ["Fire"] = {"move_characters@franklin@fire"},
  227.     ["Fire2"] = {"move_characters@michael@fire"},
  228.     ["Fire3"] = {"move_m@fire"},
  229.     ["Flee"] = {"move_f@flee@a"},
  230.     ["Franklin"] = {"move_p_m_one"},
  231.     ["Gangster"] = {"move_m@gangster@generic"},
  232.     ["Gangster2"] = {"move_m@gangster@ng"},
  233.     ["Gangster3"] = {"move_m@gangster@var_e"},
  234.     ["Gangster4"] = {"move_m@gangster@var_f"},
  235.     ["Gangster5"] = {"move_m@gangster@var_i"},
  236.     ["Grooving"] = {"anim@move_m@grooving@"},
  237.     ["Guard"] = {"move_m@prison_gaurd"},
  238.     ["Handcuffs"] = {"move_m@prisoner_cuffed"},
  239.     ["Heels"] = {"move_f@heels@c"},
  240.     ["Heels2"] = {"move_f@heels@d"},
  241.     ["Hiking"] = {"move_m@hiking"},
  242.     ["Hipster"] = {"move_m@hipster@a"},
  243.     ["Hobo"] = {"move_m@hobo@a"},
  244.     ["Hurry"] = {"move_f@hurry@a"},
  245.     ["Janitor"] = {"move_p_m_zero_janitor"},
  246.     ["Janitor2"] = {"move_p_m_zero_slow"},
  247.     ["Jog"] = {"move_m@jog@"},
  248.     ["Lemar"] = {"anim_group_move_lemar_alley"},
  249.     ["Lester"] = {"move_heist_lester"},
  250.     ["Lester2"] = {"move_lester_caneup"},
  251.     ["Maneater"] = {"move_f@maneater"},
  252.     ["Michael"] = {"move_ped_bucket"},
  253.     ["Money"] = {"move_m@money"},
  254.     ["Muscle"] = {"move_m@muscle@a"},
  255.     ["Posh"] = {"move_m@posh@"},
  256.     ["Posh2"] = {"move_f@posh@"},
  257.     ["Quick"] = {"move_m@quick"},
  258.     ["Runner"] = {"female_fast_runner"},
  259.     ["Sad"] = {"move_m@sad@a"},
  260.     ["Sassy"] = {"move_m@sassy"},
  261.     ["Sassy2"] = {"move_f@sassy"},
  262.     ["Scared"] = {"move_f@scared"},
  263.     ["Sexy"] = {"move_f@sexy@a"},
  264.     ["Shady"] = {"move_m@shadyped@a"},
  265.     ["Slow"] = {"move_characters@jimmy@slow@"},
  266.     ["Swagger"] = {"move_m@swagger"},
  267.     ["Tough"] = {"move_m@tough_guy@"},
  268.     ["Tough2"] = {"move_f@tough_guy@"},
  269.     ["Trash"] = {"clipset@move@trash_fast_turn"},
  270.     ["Trash2"] = {"missfbi4prepp1_garbageman"},
  271.     ["Trevor"] = {"move_p_m_two"},
  272.     ["Wide"] = {"move_m@bag"},
  273. }
  274.  
  275. -- LANG --
  276. CFG.LANG = {
  277.     ox_notify_header = 'BUDDY ALERT',
  278.  
  279.     register_header = 'REGISTER YOUR BUDDY',
  280.     choose_desc = 'Choose your buddy',
  281.     name_buddy = 'Name Your Buddy',
  282.     register_buddy = 'Register Buddy',
  283.     name = 'Name',
  284.  
  285.     select_buddy = 'SELECT YOUR BUDDY',
  286.     buddy_menu = 'BUDDY MENU',
  287.  
  288.     spawn = 'Spawn | Remove',
  289.     spawn_desc = 'Call your buddy',
  290.  
  291.     follow = 'Follow',
  292.     stop = 'Stop',
  293.     follow_desc = 'Follow me!',
  294.  
  295.     get_in = 'Get In',
  296.     get_out = 'Go Out',
  297.     get_desc = 'Send your buddy to vehicle',
  298.  
  299.     animations = 'Animations',
  300.     anim_desc = 'Play Animations',
  301.  
  302.     reselect = 'Reselect Buddy',
  303.     reselect_desc = 'Open selection menu',
  304.  
  305.     other = 'Other Options',
  306.     other_desc = 'Some cool features hiding there',
  307.  
  308.     check_buddy = 'Check Status',
  309.     check_desc = 'Make sure your buddy is okay',
  310.  
  311.     other_actions = 'Check Your Buddy',
  312.  
  313.     equip_weapon = 'Equip Weapon',
  314.     unarmed = 'Fists',
  315.     taser = 'Taser',
  316.     pistol = 'Pistol',
  317.     rifle = 'Rifle',
  318.  
  319.     carry = 'Carry',
  320.     carry_desc = 'Carry your buddy',
  321.     stop_carry = 'Press ~INPUT_DETONATE~ to ~r~stop ~w~carrying.',
  322.  
  323.     heal_buddy = 'Revive | Heal',
  324.     armor_buddy = 'Armor',
  325.     heal_desc = 'Help your buddy',
  326.  
  327.     appearance = 'Apperance',
  328.     buddy_style = 'Switch Style (Random)',
  329.     change_appearance = 'Appearance (BETA)',
  330.     reset_appearance = 'Reset Appearance',
  331.     walk_styles = 'Walk Styles',
  332.    
  333.     attack = 'Attack!',
  334.     go = 'Go!',
  335.  
  336.     blip = 'Buddy',
  337.  
  338.     buddy_died = 'Your buddy died and got removed.', -- shows this message only if u using -> buddy_remove = true
  339.  
  340.     missing_item = "You missing required item (%s)",
  341.  
  342.     status = "Health: %s, Armor: %s",
  343.  
  344.     max_limit = "You can't register more buddies... (limit %i)",
  345.  
  346.     nobody_close = 'Nobody close.',
  347.  
  348.     buddy_not_close = 'You must be close to your buddy.',
  349.  
  350.     required_job = "You don't have required job.",
  351.  
  352.     all_seats_occupied = "All seats are occupied...",
  353.     veh_no_found = "Vehicle not found.",
  354.     no_vehicle = "Couldn't find vehicle, make sure you looking on one.",
  355.     no_plate = "Couldn't find vehicle with plate.",
  356.     veh_no_supported = "This vehicle model isn't supported.",
  357.  
  358.     saved = 'Buddy was saved.',
  359.     not_loaded = "Your buddy isn't loaded.",
  360. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement