Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Utility = {
- Framework = "NEW", -- Framework NEW - Qbcore or OLD - Qbcore or ESX
- CoreName = "qb-core", -- Core Name or Trigger ESX: esx:getSharedObject
- ItemBox = "inventory:client:ItemBox", -- If you are using ESX ignore this
- WaitAfterRobbing = true, -- Time to wait after new robbery
- WaitSeconds = 60, -- Cooldown to steal again
- Distance = 5, -- Distance to the NPC do rob
- TimeRob = 5000, -- Progressbar duration during theft
- KeyToRob = 38, -- "E"
- Rewards = {
- Type = "money", -- Available: "money", "blackmoney", "item"
- MinMoney = 100, -- Minimum money that can come out (Both normal money and dirty money)
- MaxMoney = 500, -- Maximum money that can go out (Both normal money and dirty money)
- Item = { -- List of available items can drop on npc's
- [1] = "phone",
- [2] = "water_bottle",
- },
- ItemAmount = { -- Amount of the item when rob npc
- MinItem = 1,
- MaxItem = 2,
- }
- },
- CallCops = {
- Enable = true, -- Enable call cops?
- PercentageCall = 50, -- % Percentage to call cops
- },
- ExperienceSystem = { -- Only Works if you are using QBCore
- Enable = true, -- If you use ESX put that to false
- Level_1 = {
- XP = 0, -- Experience required for level 0 ( Don't touch )
- Reward = 1, -- x1 Reward
- },
- Level_2 = {
- XP = 125, -- Experience required for level 2
- Reward = 2, -- x2 Reward
- },
- Level_3 = {
- XP = 325, -- Experience required for level 3
- Reward = 3, -- x3 Reward
- },
- Level_4 = {
- XP = 525, -- Experience required for level 4
- Reward = 4, -- x4 Reward
- },
- Level_5 = {
- XP = 725, -- Experience required for level 5
- Reward = 5, -- x5 Reward
- }
- }
- }
- Language = {
- RecentlyStolen = "Take it easy on yourself!",
- NpcDead = "You're dead, you can't steal.",
- NoDistance = "You're a long way from civilian!",
- RobNPC = "Stealing the civilian...",
- RobAgain = "Now you can steal again!",
- }
- function CallCops()
- -- Trigger your event
- end
- function progressBar()
- -- Here you can change the progressbar to whatever you want.
- if Config.Utility.Framework == "NEW" or Config.Utility.Framework == "OLD" then
- QBCore.Functions.Progressbar("RoubarNPCZINHO", Language.RobNPC, (Config.Utility.TimeRob), false, true)
- elseif Config.Utility.Framework == "ESX" then
- TriggerEvent("mythic_progbar:client:progress", {
- name = "RoubarNPCZINHO",
- duration = Config.Utility.TimeRob,
- label = Language.RobNPC,
- useWhileDead = false,
- canCancel = true,
- controlDisables = {},
- }, function(status)
- end)
- end
- end
- function notify(msg)
- -- Here you can change the notification to whatever you want.
- if Config.Utility.Framework == "NEW" or Config.Utility.Framework == "OLD" then
- QBCore.Functions.Notify(msg)
- elseif Config.Utility.Framework == "ESX" then
- exports['mythic_notify']:SendAlert('error', msg, 5000)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment