Guest User

KQ Animation suggestions Config file

a guest
Jan 27th, 2024
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.39 KB | None | 0 0
  1. Config = {}
  2.  
  3. --- Debug mode
  4. ---
  5. --- This feature will enable additional debug views as well as some debug prints
  6. --- Should only be used in a development-environment
  7. Config.debug = false
  8.  
  9.  
  10. --- Default keybinds & tooltip look
  11. Config.keybinds = {
  12.     play = {
  13.         key = 'minus', -- Default keybind - After loading the script once. This keybind will be assigned to your game settings
  14.     },
  15.     style = {
  16.         -- Whether to show the suggested animation tooltip
  17.         show = true,
  18.  
  19.         -- Positioning of the keybind tooltip (offsets)
  20.         top = 'auto',
  21.         left = 'auto',
  22.         bottom = '16px',
  23.         right = '16px',
  24.  
  25.         -- Size of the tooltip text
  26.         fontSize = 1.4,
  27.  
  28.         -- RGBA value of the tooltip background
  29.         bgColor = { 194, 207, 204, 0.6 },
  30.  
  31.         -- RGBA value of the tooltip text
  32.         textColor = { 20, 20, 20, 1 },
  33.  
  34.         -- RGBA value of the keybind background
  35.         keybindBgColor = { 40, 40, 40, 0.6 },
  36.  
  37.         -- RGBA value of the keybind text
  38.         keybindTextColor = { 255, 255, 255, 1 },
  39.  
  40.         -- Strength of corner rounding
  41.         borderRadius = 0.1,
  42.     }
  43. }
  44.  
  45.  
  46. --- Animation play cooldown in ms
  47. Config.cooldown = 1000
  48.  
  49.  
  50. --- Controls which will cancel the animation when pressed
  51. -- https://docs.fivem.net/docs/game-references/controls/
  52. Config.cancelControls = {
  53.     22, 23, 25, 263, 264,
  54. }
  55.  
  56.  
  57. --- Animation lists
  58. ---
  59. --- Here you can create your own lists of animations which you may want to reuse
  60. ---
  61. --- Mind that not all pre-configured events use lists. You can also simply input the animations directly into the
  62. --- specific events.
  63. Config.animLists = {
  64.     ['sitting'] = {
  65.         {
  66.             dict = 'timetable@ron@ig_5_p3',
  67.             anim = 'ig_5_p3_base',
  68.             flag = 33,
  69.             offset = vector3(0.0, 0.55, 0.52),
  70.         },
  71.         {
  72.             dict = 'timetable@reunited@ig_10',
  73.             anim = 'base_amanda',
  74.             flag = 33,
  75.             offset = vector3(0.0, 0.55, 0.52),
  76.         },
  77.         {
  78.             dict = 'timetable@ron@ig_3_couch',
  79.             anim = 'base',
  80.             flag = 33,
  81.             offset = vector3(0.0, 0.65, 0.52),
  82.         },
  83.         {
  84.             dict = 'timetable@maid@couch@',
  85.             anim = 'base',
  86.             flag = 33,
  87.             offset = vector3(0.0, 0.45, 0.65),
  88.         },
  89.     },
  90.     ['dance'] = {
  91.         {
  92.             dict = 'anim@amb@nightclub@dancers@solomun_entourage@',
  93.             anim = 'mi_dance_facedj_17_v1_female^1',
  94.             flag = 33,
  95.             offset = vector3(0.0, 0.0, 0.0),
  96.         },
  97.         {
  98.             dict = 'anim@amb@nightclub@mini@dance@dance_solo@female@var_a@',
  99.             anim = 'high_center',
  100.             flag = 33,
  101.             offset = vector3(0.0, 0.0, 0.0),
  102.         },
  103.         {
  104.             dict = 'anim@amb@nightclub@mini@dance@dance_solo@female@var_b@',
  105.             anim = 'high_center',
  106.             flag = 33,
  107.             offset = vector3(0.0, 0.0, 0.0),
  108.         },
  109.         {
  110.             dict = 'anim@amb@nightclub@mini@dance@dance_solo@male@var_b@',
  111.             anim = 'high_center_down',
  112.             flag = 33,
  113.             offset = vector3(0.0, 0.0, 0.0),
  114.         },
  115.         {
  116.             dict = 'anim@amb@nightclub@dancers@podium_dancers@',
  117.             anim = 'hi_dance_facedj_17_v2_male^5',
  118.             flag = 33,
  119.             offset = vector3(0.0, 0.0, 0.0),
  120.         },
  121.         {
  122.             dict = 'anim@amb@nightclub@dancers@crowddance_facedj@hi_intensity',
  123.             anim = 'hi_dance_facedj_09_v2_female^1',
  124.             flag = 33,
  125.             offset = vector3(0.0, 0.0, 0.0),
  126.         },
  127.         {
  128.             dict = 'anim@amb@nightclub@mini@dance@dance_solo@female@var_a@',
  129.             anim = 'high_center_up',
  130.             flag = 33,
  131.             offset = vector3(0.0, 0.0, 0.0),
  132.         },
  133.     }
  134. }
  135.  
  136.  
  137. --- Animation suggestions for specific props
  138. ---
  139. --- Define specific props along with their co-responding animations
  140. --- Feel free to add or remove these
  141. ---
  142. --- label: text displayed in the keybind tooltip
  143. --- align: whether or not to align the player with the prop (make sure to specify the offset when true)
  144. --- offset: offset of the animation from the prop
  145. --- models: models of the props on which this action will be possible
  146. --- animations: an inline table of animations or an `Config.animList` table of animations
  147. Config.propSpecific = {
  148.     {
  149.         label = 'sit down',
  150.         align = true,
  151.         offset = vector3(0.0, -1.3, 0.45),
  152.         models = {
  153.             'prop_bench_01a',
  154.             'prop_bench_01c',
  155.             'prop_bench_02',
  156.             'prop_bench_03',
  157.             'prop_bench_04',
  158.             'prop_bench_05',
  159.             'prop_bench_06',
  160.             'prop_bench_07',
  161.             'prop_bench_08',
  162.             'prop_bench_09',
  163.             'prop_bench_10',
  164.             'prop_bench_11',
  165.         },
  166.         animations = Config.animLists['sitting'],
  167.     },
  168.     {
  169.         label = 'dig through the bin',
  170.         align = false,
  171.         models = {
  172.             'prop_bin_01a',
  173.             'prop_bin_03a',
  174.             'prop_bin_05a',
  175.         },
  176.         animations = {
  177.             {
  178.                 dict = 'mini@repair',
  179.                 anim = 'fixing_a_ped',
  180.                 flag = 33,
  181.                 offset = vector3(0.0, 0.0, 0.0),
  182.             },
  183.         },
  184.     },
  185. }
  186.  
  187. --- Animation suggestions for specific areas
  188. ---
  189. --- Define specific areas along with their co-responding animations
  190. --- Feel free to add or remove these
  191. ---
  192. --- label: text displayed in the keybind tooltip
  193. --- coords: coordinates of the area
  194. --- radius: radius of the animation area
  195. --- animations: an inline table of animations or an `Config.animList` table of animations
  196. Config.areaSpecific = {
  197.     { -- vanilla unicorn
  198.         label = 'dance',
  199.         coords = vector3(115.6, -1289.0, 28.2),
  200.         radius = 13.0,
  201.         animations = Config.animLists['dance'],
  202.     },
  203.     { -- tequilalala
  204.         label = 'dance',
  205.         coords = vector3(-557.65, 285.32, 82.2),
  206.         radius = 10.0,
  207.         animations = Config.animLists['dance'],
  208.     },
  209.     { -- bahamas mammas
  210.         label = 'dance',
  211.         coords = vector3(-1386.73, -619.17, 30.8),
  212.         radius = 10.0,
  213.         animations = Config.animLists['dance'],
  214.     },
  215. }
  216.  
  217.  
  218. --- Main animation suggestion configuration
  219. ---
  220. --- Available events:
  221. --- - lean - Leaning when something is directly behind the player
  222. --- - leanBar - Leaning forward when something is directly in front the player but not higher up than their chest (bar etc.)
  223. --- - sit - Sitting down when something is located behind the player below their waist (walls, stairs, chairs etc.)
  224. --- - idle - May be used anywhere. Active after the player has been stationary for 4 or more seconds
  225. --- - intimidate - General intimidation gestures. Active for few seconds after player has been in melee combat
  226. --- - showPain - Shows that the player is hurt. Active when player has below 60% of their health
  227. --- - inspectCar - Inspects cars engine/trunk. Active when player is looking at an engine bay or trunk which is open
  228. --- - cheerBurnout - Cheering/clapping. Active when player is looking at a car performing a burnout or drifting
  229. --- - greet - Waving hello. Active when a player is looking at another player whom he hasn't greeted before in the last 15 minutes
  230. ---
  231. --- enabled: whether the specific action type should be enabled
  232. --- label: text displayed in the keybind tooltip
  233. --- animations: an inline table of animations or an `Config.animList` table of animations
  234. Config.animations = {
  235.     lean = {
  236.         enabled = true,
  237.         label = 'lean',
  238.         animations = {
  239.             {
  240.                 dict = 'anim@scripted@freemode_npc@fix_agy_ig4_lamar@',
  241.                 anim = 'lean_wall_idle_01_lamar',
  242.                 flag = 33,
  243.                 offset = vector3(0.0, 0.35, 0.0),
  244.             },
  245.             {
  246.                 dict = 'amb@world_human_leaning@male@wall@back@foot_up@idle_a',
  247.                 anim = 'idle_a',
  248.                 flag = 33,
  249.                 offset = vector3(0.0, 0.35, 0.0),
  250.             },
  251.             {
  252.                 dict = 'anim@scripted@freemode_npc@fix_agy_ig4_lamar@',
  253.                 anim = 'lean_wall_idle_01_lamar',
  254.                 flag = 33,
  255.                 offset = vector3(0.0, 0.35, 0.0),
  256.             },
  257.             {
  258.                 dict = 'amb@world_human_leaning@female@wall@back@holding_elbow@idle_a',
  259.                 anim = 'idle_a',
  260.                 flag = 33,
  261.                 offset = vector3(0.0, 0.35, 0.0),
  262.             }
  263.         },
  264.     },
  265.     leanBar = {
  266.         enabled = true,
  267.         label = 'lean over',
  268.         animations = {
  269.             {
  270.                 dict = 'anim@amb@nightclub@lazlow@ig1_vip@',
  271.                 anim = 'clubvip_base_laz',
  272.                 flag = 33,
  273.                 offset = vector3(0.0, -0.55, 0.02),
  274.             },
  275.             {
  276.                 dict = 'amb@prop_human_bum_shopping_cart@male@idle_a',
  277.                 anim = 'idle_c',
  278.                 flag = 33,
  279.                 offset = vector3(0.0, -0.55, 0.02),
  280.             },
  281.             {
  282.                 dict = 'anim@amb@nightclub@lazlow@ig1_vip@',
  283.                 anim = 'clubvip_dlg_jimmyboston_laz',
  284.                 flag = 33,
  285.                 offset = vector3(0.0, -0.45, 0.085),
  286.             },
  287.         },
  288.     },
  289.     sit = {
  290.         enabled = true,
  291.         label = 'sit down',
  292.         animations = Config.animLists['sitting'],
  293.     },
  294.     idle = {
  295.         enabled = true,
  296.         label = 'idle',
  297.         animations = {
  298.             {
  299.                 dict = 'rcmjosh1',
  300.                 anim = 'idle',
  301.                 flag = 33,
  302.                 offset = vector3(0.0, 0.0, 0.0),
  303.             },
  304.             {
  305.                 dict = 'rcmnigel1a',
  306.                 anim = 'base',
  307.                 flag = 33,
  308.                 offset = vector3(0.0, 0.0, 0.0),
  309.             },
  310.             {
  311.                 dict = 'missbigscore2aig_3',
  312.                 anim = 'wait_for_van_c',
  313.                 flag = 33,
  314.                 offset = vector3(0.0, 0.0, 0.0),
  315.             },
  316.             {
  317.                 dict = 'amb@world_human_hang_out_street@female_arms_crossed@idle_a',
  318.                 anim = 'idle_a',
  319.                 flag = 33,
  320.                 offset = vector3(0.0, 0.0, 0.0),
  321.             },
  322.             {
  323.                 dict = 'anim@heists@heist_corona@single_team',
  324.                 anim = 'single_team_loop_boss',
  325.                 flag = 33,
  326.                 offset = vector3(0.0, 0.0, 0.0),
  327.             },
  328.         }
  329.     },
  330.     intimidate = {
  331.         enabled = true,
  332.         label = 'intimidate',
  333.         animations = {
  334.             {
  335.                 dict = 'anim@mp_player_intselfiethe_bird',
  336.                 anim = 'idle_a',
  337.                 flag = 48,
  338.                 offset = vector3(0.0, 0.0, 0.0),
  339.             },
  340.             {
  341.                 dict = 'anim@mp_player_intupperfinger',
  342.                 anim = 'idle_a_fp',
  343.                 flag = 48,
  344.                 offset = vector3(0.0, 0.0, 0.0),
  345.             },
  346.             {
  347.                 dict = 'mini@triathlon',
  348.                 anim = 'want_some_of_this',
  349.                 flag = 48,
  350.                 offset = vector3(0.0, 0.0, 0.0),
  351.             },
  352.             {
  353.                 dict = 'anim@mp_player_intcelebrationfemale@knuckle_crunch',
  354.                 anim = 'knuckle_crunch',
  355.                 flag = 48,
  356.                 offset = vector3(0.0, 0.0, 0.0),
  357.             },
  358.             {
  359.                 dict = 'mp_player_int_uppergrab_crotch',
  360.                 anim = 'mp_player_int_grab_crotch',
  361.                 flag = 48,
  362.                 offset = vector3(0.0, 0.0, 0.0),
  363.             },
  364.             {
  365.                 dict = 'misscommon@response',
  366.                 anim = 'bring_it_on',
  367.                 flag = 48,
  368.                 offset = vector3(0.0, 0.0, 0.0),
  369.             },
  370.             {
  371.                 dict = 'misscommon@response',
  372.                 anim = 'screw_you',
  373.                 flag = 48,
  374.                 offset = vector3(0.0, 0.0, 0.0),
  375.             },
  376.         }
  377.     },
  378.     showPain = {
  379.         enabled = true,
  380.         label = 'show pain',
  381.         animations = {
  382.             {
  383.                 dict = 'anim@amb@casino@valet_scenario@pose_d@',
  384.                 anim = 'scratch_face_a_m_y_vinewood_01',
  385.                 flag = 48,
  386.                 offset = vector3(0.0, 0.0, 0.0),
  387.             },
  388.             {
  389.                 dict = 'anim@amb@machinery@lathe@',
  390.                 anim = 'scratch_amy_skater_01',
  391.                 flag = 48,
  392.                 offset = vector3(0.0, 0.0, 0.0),
  393.             },
  394.             {
  395.                 dict = 'timetable@gardener@smoking_joint',
  396.                 anim = 'idle_cough',
  397.                 flag = 48,
  398.                 offset = vector3(0.0, 0.0, 0.0),
  399.             },
  400.         }
  401.     },
  402.     inspectCar = {
  403.         enabled = true,
  404.         label = 'inspect vehicle',
  405.         animations = {
  406.             {
  407.                 dict = 'anim@amb@carmeet@checkout_engine@male_a@base',
  408.                 anim = 'base',
  409.                 flag = 33,
  410.                 offset = vector3(0.0, 0.0, 0.0),
  411.             },
  412.             {
  413.                 dict = 'anim@amb@carmeet@checkout_engine@male_b@base',
  414.                 anim = 'base',
  415.                 flag = 33,
  416.                 offset = vector3(0.0, 0.0, 0.0),
  417.             },
  418.             {
  419.                 dict = 'anim@amb@carmeet@checkout_engine@male_c@base',
  420.                 anim = 'base',
  421.                 flag = 33,
  422.                 offset = vector3(0.0, 0.0, 0.0),
  423.             },
  424.             {
  425.                 dict = 'anim@amb@carmeet@checkout_engine@male_d@base',
  426.                 anim = 'base',
  427.                 flag = 33,
  428.                 offset = vector3(0.0, 0.0, 0.0),
  429.             },
  430.             {
  431.                 dict = 'anim@amb@carmeet@checkout_engine@male_f@base',
  432.                 anim = 'base',
  433.                 flag = 33,
  434.                 offset = vector3(0.0, 0.0, 0.0),
  435.             },
  436.             {
  437.                 dict = 'anim@amb@carmeet@checkout_engine@male_g@base',
  438.                 anim = 'base',
  439.                 flag = 33,
  440.                 offset = vector3(0.0, 0.0, 0.0),
  441.             },
  442.             {
  443.                 dict = 'anim@amb@carmeet@checkout_engine@male_h@base',
  444.                 anim = 'base',
  445.                 flag = 33,
  446.                 offset = vector3(0.0, 0.0, 0.0),
  447.             },
  448.         },
  449.     },
  450.     cheerBurnout = {
  451.         enabled = true,
  452.         label = 'cheer',
  453.         animations = {
  454.             {
  455.                 dict = 'amb@world_human_cheering@male_a',
  456.                 anim = 'base',
  457.                 flag = 33,
  458.                 offset = vector3(0.0, 0.0, 0.0),
  459.             },
  460.             {
  461.                 dict = 'anim@amb@nightclub@peds@',
  462.                 anim = 'amb_world_human_cheering_female_c',
  463.                 flag = 33,
  464.                 offset = vector3(0.0, 0.0, 0.0),
  465.             },
  466.         },
  467.     },
  468.     greet = {
  469.         enabled = true,
  470.         label = 'greet',
  471.         animations = {
  472.             {
  473.                 dict = 'friends@frj@ig_1',
  474.                 anim = 'wave_e',
  475.                 flag = 48,
  476.                 offset = vector3(0.0, 0.0, 0.0),
  477.             },
  478.             {
  479.                 dict = 'gestures@m@standing@casual',
  480.                 anim = 'gesture_hello',
  481.                 flag = 48,
  482.                 offset = vector3(0.0, 0.0, 0.0),
  483.             },
  484.         },
  485.     },
  486. }
  487.  
Advertisement
Add Comment
Please, Sign In to add comment