Advertisement
Guest User

Untitled

a guest
Apr 20th, 2023
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.23 KB | Source Code | 0 0
  1. Config = {}
  2. Config.debug = false
  3. Config.zombieModels = {`u_m_y_zombie_01`, `u_m_m_prolsec_01`, `ig_orleans`, `s_m_y_prisoner_01`, `s_m_y_marine_03`, `s_m_y_marine_01`, `s_m_y_mime`}
  4. Config.LootDistance = 3.0 -- leave it if you don't use the target method to get the loot
  5.  
  6. --[[
  7.     note: make sure the zone name-s are not matching! you cant set two ['zone_name'], make sure to change it.
  8.     example zone:
  9.  
  10.     ['zone_name'] = {
  11.         type = 'box',  -- avaible options: box, sphere
  12.         boxData = {
  13.             coords = {
  14.                 {
  15.                     position = vec3(1,1,1),
  16.                     size = vec3(1,1,1),
  17.                     rotation = 45
  18.                 }
  19.             },
  20.         },
  21.         sphereData = {
  22.             coords = {
  23.                 {
  24.                     position = vec3(1,1,1),
  25.                     radius = 50.0
  26.                 },
  27.             }
  28.         },
  29.         blip = { -- you can find more information at https://docs.fivem.net/docs/game-references/blips/
  30.             sprite = 84,
  31.             display = 4,
  32.             scale = 1.0,
  33.             colour = 1,
  34.             text = 'Zombie zone',
  35.             radius = {
  36.                 colour = 1,
  37.                 alpha = 150  -- value between 0 and 255
  38.             }
  39.         },
  40.         zombie = {
  41.             count = 15, -- zombies/client. If every zombie died they will respawn with the same amount
  42.             damage = 10, -- zombie's damage
  43.             health = 250, -- zombie's health
  44.             armour = 100, -- zombie's armour - Max is 100
  45.             loot = true, -- if true, you can loot the zombie with ox_target, if false you will get the reward items as soon as you kill them
  46.             canDieFromHeadshot = true, -- if false, zombies can't die from headshot, it gets as a single torso shot.
  47.             itemRewards = { -- {name = 'name', count = count, chance = value between 0 and 10}
  48.                 {name = 'burger', count = 1, chance = 1},
  49.                 {name = 'money', count = 5, chance = 5},
  50.                 {name = 'water', count = 1, chance = 6}
  51.             }
  52.         }
  53.     }
  54. ]]
  55.  
  56. Config.Labels = {
  57.     ['inventory'] = {
  58.         label = 'Zombie loot'
  59.     },
  60.     ['target'] = {
  61.         label = 'Loot zombie',
  62.         icon = 'fa-solid fa-skull' -- Name of a Font Awesome icon. (https://fontawesome.com/icons)
  63.     }
  64. }
  65.  
  66. Config.Locales = {
  67.     ['onEnter'] = {
  68.         title = 'Information',
  69.         description = 'You have entered into a zombie zone!',
  70.         type = 'success', -- avaible types : inform, success, error
  71.         icon = 'skull' -- Name of a Font Awesome icon. (https://fontawesome.com/icons)
  72.     },
  73.     ['onEnterWithVehicle'] = {
  74.         title = 'Information',
  75.         description = 'You can not come in with a vehicle!',
  76.         type = 'error', -- avaible types : inform, success, error
  77.         icon = 'skull' -- Name of a Font Awesome icon. (https://fontawesome.com/icons)
  78.     },
  79.     ['onExit'] = {
  80.         title = 'Information',
  81.         description = 'You have exited from a zombie zone!',
  82.         type = 'error', -- avaible types : inform, success, error
  83.         icon = 'skull' -- Name of a Font Awesome icon. (https://fontawesome.com/icons)
  84.     },
  85.     ['zombiesIncoming'] = {
  86.         title = 'Information',
  87.         description = 'Watch out, theres more of them!',
  88.         type = 'inform', -- avaible types : inform, success, error
  89.         icon = 'skull' -- Name of a Font Awesome icon. (https://fontawesome.com/icons)
  90.     }
  91. }
  92.  
  93. Config.Zones = {
  94.     ['test_zone'] = {
  95.         type = 'sphere',  -- avaible options: box, sphere
  96.         sphereData = {
  97.             coords = {
  98.                 {
  99.                     position = vec3(2176.8569, 3182.2786, 50.5334),
  100.                     radius = 50.0
  101.                 },
  102.             }
  103.         },
  104.         boxData = {
  105.             coords = {
  106.                 {
  107.                     position = vec3(2384.6589, 3086.5298, 48.1531),
  108.                     size = vec3(100,100,100),
  109.                     rotation = 0
  110.                 }
  111.             },
  112.         },
  113.         blip = { -- you can find more information at https://docs.fivem.net/docs/game-references/blips/
  114.             sprite = 84,
  115.             display = 4,
  116.             scale = 1.0,
  117.             colour = 1,
  118.             text = 'Zombie zone - Hard level',
  119.             radius = {
  120.                 colour = 1,
  121.                 alpha = 150  -- value between 0 and 255
  122.             }
  123.         },
  124.         zombie = {
  125.             count = 3, -- zombies/client. If every zombie died they will respawn with the same amount
  126.             damage = 10, -- zombie's damage
  127.             health = 250, -- zombie's health
  128.             armour = 100, -- zombie's armour - Max is 100
  129.             loot = false, -- if true, you can loot the zombie with ox_target, if false you will get the reward items as soon as you kill them
  130.             canDieFromHeadshot = true, -- if false, zombies can't die from headshot, it gets as a single torso shot.
  131.             itemRewards = { -- {name = 'name', count = count, chance = value between 0 and 10}
  132.                 {name = 'burger', count = 1, chance = 6},
  133.                 {name = 'money', count = 5, chance = 9},
  134.                 {name = 'water', count = 1, chance = 2}
  135.             }
  136.         }
  137.     }
  138. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement