🗒ī¸Config

Config = {}

Config.Settings = {
    Core = "qb-core", -- Your core folder name "qb-core"
    Target = "qb-target", -- Your target/third eye folder name "qb-target"
    Menu = "qb-menu", -- Your menu folder name "qb-menu"
    Input = "qb-input", -- Your input folder name "qb-input"
    Notify = "QBCore", -- Change your notify here "QBCore" | "okok" | "mythic"
    InvLink = "qb-inventory/html/images/", -- Inventory directory for your images
    Fuel = "LegacyFuel", -- Your export trigger for fuel | "ps-fuel" , "cdn-fuel" , "LegacyFuel"
    Keys = "vehiclekeys:client:SetOwner", -- Your trigger to give keys to player
    Webhook = "", -- Your webhook to logs when players selling
    Debug = true, -- Enable some prints on console?
    Minigame = { -- https://github.com/Project-Sloth/ps-ui
        EnableMG = false, -- Enable minigame?
        NumberOfCircles = 2, -- Number of circles ps-ui
        MS = 20, -- Time to complete MS
    }
}


-- ██████╗░██╗░░░░░██╗██████╗░░██████╗
-- ██╔══██╗██║░░░░░██║██╔══██╗██╔════╝
-- ██████â•Ļ╝██║░░░░░██║██████╔╝╚█████╗░
-- ██╔══██╗██║░░░░░██║██╔═══╝░░╚═══██╗
-- ██████â•Ļ╝███████╗██║██║░░░░░██████╔╝
-- ╚═════╝░╚══════╝╚═╝╚═╝░░░░░╚═════╝░


Config.Blips = {
    [1] = {enable = true, x = -1483.0, y = -1029.77, z = 5.13, sprite = 409, display = 4, scale = 0.8, colour = 5,  name = "Beach Cleaning"},
    [2] = {enable = true, x = -1610.22,  y = -1147.52,  z = 0.6, sprite = 404, display = 4, scale = 0.8, colour = 5,  name = "Rent Jetski"},
    [3] = {enable = true, x = -1268.97,  y = -1482.06,  z = 4.32, sprite = 226, display = 4, scale = 0.8, colour = 5,  name = "Rent Bike"},
    [4] = {enable = true, x = -1517.38,  y = -920.29,  z = 9.16, sprite = 226, display = 4, scale = 0.8, colour = 5,  name = "Beach Shop"},
}


-- ██████╗░███████╗██████╗░░██████╗
-- ██╔══██╗██╔════╝██╔══██╗██╔════╝
-- ██████╔╝█████╗░░██║░░██║╚█████╗░
-- ██╔═══╝░██╔══╝░░██║░░██║░╚═══██╗
-- ██║░░░░░███████╗██████╔╝██████╔╝
-- ╚═╝░░░░░╚══════╝╚═════╝░╚═════╝░


Config.Peds = {
    [1] = {enable = true, type = 4, hash = GetHashKey("a_m_m_tourist_01"), x = -1483.0,  y = -1029.77,  z = 5.13, h = 229.85}, -- General Ped
    [2] = {enable = true, type = 4, hash = GetHashKey("a_m_y_jetski_01"), x = -1610.22,  y = -1147.52,  z = 0.6, h = 310.76}, -- Rent Jetski Ped
    [3] = {enable = true, type = 4, hash = GetHashKey("a_m_y_jetski_01"), x = -1268.97,  y = -1482.06,  z = 3.32, h = 281.06}, -- Rent Bike Ped
    [4] = {enable = true, type = 4, hash = GetHashKey("a_m_y_ktown_01"), x = -1517.38,  y = -920.29,  z = 9.16, h = 148.06}, -- Beach Shop Ped
}

Config.BeachShop = {
    [1] = { name = "shovel", price = 50,   amount = 10, info = {}, type = "item", slot = 1 },
    [2] = { name = "bucket", price = 150,  amount = 10, info = {}, type = "item", slot = 2 },
}



-- ██████╗░███████╗███╗░░██╗████████╗
-- ██╔══██╗██╔════╝████╗░██║╚══██╔══╝
-- ██████╔╝█████╗░░██╔██╗██║░░░██║░░░
-- ██╔══██╗██╔══╝░░██║╚████║░░░██║░░░
-- ██║░░██║███████╗██║░╚███║░░░██║░░░
-- ╚═╝░░╚═╝╚══════╝╚═╝░░╚══╝░░░╚═╝░░░


Config.Rent = {
    Model = "blazer2", -- Model of vehicle being spawned
    Plate = "BEACH", -- Plate of the vehicle being spawned
    Location = vector4(-1481.84, -1034.49, 6.01, 233.65), -- Location to spawn the vehicle
    Delete = vector4(-1481.84, -1034.49, 6.01, 233.65), -- Location to return / delete
}

Config.RentJetski = {
    Model = "seashark", -- Model of jetski
    Plate = "BEACH", -- Plate
    Location = vector3(-1615.72, -1157.41, 0.58), -- Location to spawn the jetski
    Delete = vector4(-1614.85, -1152.85, 0.97, 336.35), -- Location to return / delete the jetski
}

Config.RentBike = {
    Model = "bmx", -- Model of bike
    Plate = "BEACH", -- Plate
    Location = vector4(-1267.45, -1483.66, 4.33, 309.64), -- Location to spawn the bmx
    Delete = vector4(-1267.22, -1483.42, 4.33, 304.39), -- Location to return / delete the bmx
}


-- ██╗░░░░░░█████╗░░█████╗░░█████╗░████████╗██╗░█████╗░███╗░░██╗░██████╗
-- ██║░░░░░██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██║██╔══██╗████╗░██║██╔════╝
-- ██║░░░░░██║░░██║██║░░╚═╝███████║░░░██║░░░██║██║░░██║██╔██╗██║╚█████╗░
-- ██║░░░░░██║░░██║██║░░██╗██╔══██║░░░██║░░░██║██║░░██║██║╚████║░╚═══██╗
-- ███████╗╚█████╔╝╚█████╔╝██║░░██║░░░██║░░░██║╚█████╔╝██║░╚███║██████╔╝
-- ╚══════╝░╚════╝░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░╚════╝░╚═╝░░╚══╝╚═════╝░


Config.BeachLocations = { -- This is the location random on the beach for people search and find something
    { Position = vector3(-1480.38, -1035.43, 5.87), Excavated = true},
    { Position = vector3(-1484.64, -1040.39, 5.86), Excavated = true},
    { Position = vector3(-1340.19, -1617.3, 2.93),  Excavated = true},
    { Position = vector3(-1351.52, -1648.4, 2.26),  Excavated = true},
    { Position = vector3(-1341.34, -1678.56, 2.11), Excavated = true},
    { Position = vector3(-1308.37, -1693.54, 2.61), Excavated = true},
    { Position = vector3(-1313.41, -1725.52, 2.16), Excavated = true},
    { Position = vector3(-1288.08, -1744.85, 2.19), Excavated = true},
    { Position = vector3(-1270.68, -1772.54, 2.14), Excavated = true},
    { Position = vector3(-1240.56, -1810.04, 2.56), Excavated = true},
    { Position = vector3(-1228.13, -1837.61, 2.37), Excavated = true},
    { Position = vector3(-1495.66, -1365.96, 2.15), Excavated = true},
    { Position = vector3(-1484.11, -1320.82, 2.52), Excavated = true},
    { Position = vector3(-1500.72, -1282.93, 2.29), Excavated = true},
    { Position = vector3(-1491.61, -1230.65, 2.48), Excavated = true},
    { Position = vector3(-1542.92, -1206.44, 1.4),  Excavated = true},
    { Position = vector3(-1569.11, -1155.36, 2.44), Excavated = true},
    { Position = vector3(-1572.13, -1106.76, 4.02), Excavated = true},
}


-- ██████╗░██████╗░░█████╗░██████╗░░██████╗
-- ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝
-- ██║░░██║██████╔╝██║░░██║██████╔╝╚█████╗░
-- ██║░░██║██╔══██╗██║░░██║██╔═══╝░░╚═══██╗
-- ██████╔╝██║░░██║╚█████╔╝██║░░░░░██████╔╝
-- ╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚═════╝░


Config.Drops = {

    Get = 100, -- Chance to get item

    Quantity = { min = 1, max = 2 }, -- Min and max quantity of each item founded

    RareChance = 20, -- Chance to get rare items | 20 = 20%

    UltraRareChance = 10, -- Chance to get ultra rare items | 10 = 10%

    ["Normal"] = {
        "phone",
        "plastic",
        "metalscrap",
        "aluminum",
        "steel",
        "rubber",
        "glass",
    },

    ["Rare"] = {
        "lockpick",
        "repairkit",
        "fitbit",
        "cryptostick",
    },

    ["UltraRare"] = {
        "weapon_pistol",
        "goldchain",
        "diamond_ring",
    }
}


-- ░██████╗░█████╗░██╗░░░░░███████╗░██████╗
-- ██╔════╝██╔══██╗██║░░░░░██╔════╝██╔════╝
-- ╚█████╗░███████║██║░░░░░█████╗░░╚█████╗░
-- ░╚═══██╗██╔══██║██║░░░░░██╔══╝░░░╚═══██╗
-- ██████╔╝██║░░██║███████╗███████╗██████╔╝
-- ╚═════╝░╚═╝░░╚═╝╚══════╝╚══════╝╚═════╝░


Config.Sales = {
    [1] = {
        item = "goldchain",
        price = math.random(750, 1546)
    },
    [2] = {
        item = "diamond_ring",
        price = math.random(1200, 2250)
    },
    -- You can add more items to the npc buy from ped
    --[3] = {
    --    item = "diamond_ring",
    --    price = math.random(1200, 2250)
    --},
}


-- ░██████╗░██╗░░░██╗███╗░░░███╗
-- ██╔════╝░╚██╗░██╔╝████╗░████║
-- ██║░░██╗░░╚████╔╝░██╔████╔██║
-- ██║░░╚██╗░░╚██╔╝░░██║╚██╔╝██║
-- ╚██████╔╝░░░██║░░░██║░╚═╝░██║
-- ░╚═════╝░░░░╚═╝░░░╚═╝░░░░░╚═╝

Config.RestingTime = 60 -- Seconds between each exercises
Config.EnableSkills = true -- Enable skills?
Config.Skills = "mz-skills" -- mz-skills or ps-buffs , you have on config_functions the function, in case you use other skill system
Config.GymLocations = {
    [1] = { -- Pull-ups exercise
        Loc = vector4(-1200.08, -1571.03, 4.61, 216.47), -- Location where the ped will do the exercise
        Anim = "prop_human_muscle_chin_ups", -- Animation that the ped will do when executing the exercise
        Skill = "Strength", -- Skill that will give after finishing the exercise (mz-skills or ps-buffs)
        Quantity = 1, -- Amount of the skill you select above (mz-skills or ps-buffs)
        HelpText = "~b~[E]~w~ - Pull-ups Exercise", -- Text in help text when ped is in exact location
        Label = "Exercising Strength...", -- Label on progressbar
        Time = 30000, -- 30 Seconds training
    },
    [2] = { -- Arms exercise
        Loc = vector4(-1202.97, -1565.17, 4.61, 216.47),
        Anim = "world_human_muscle_free_weights", 
        Skill = "Strength", 
        Quantity = 1,
        HelpText = "~b~[E]~w~ - Arms Exercise", 
        Label = "Exercising Strength...",
        Time = 30000, 
    },
    [3] = { -- Pushup exercise
        Loc = vector4(-1203.32, -1570.66, 4.61, 304.15),
        Anim = "world_human_push_ups", 
        Skill = "Strength", 
        Quantity = 1,
        HelpText = "~b~[E]~w~ - Pushup Exercise", 
        Label = "Exercising Strength...",
        Time = 30000,
    },
    [4] = { -- Yoga exercise
        Loc = vector4(-1204.77, -1560.1, 4.61, 217.01),
        Anim = "world_human_yoga", 
        Skill = "Lungs", 
        Quantity = 1,
        HelpText = "~b~[E]~w~ - Yoga Exercise", 
        Label = "Exercising Lungs...",
        Time = 30000,
    },
    [5] = { -- Running exercise
        Loc = vector4(-1205.27, -1567.85, 4.60, 12.29),
        Anim = "world_human_jog_standing", 
        Skill = "Stamina", 
        Quantity = 1,
        HelpText = "~b~[E]~w~ - Running Exercise", 
        Label = "Exercising Stamina...",
        Time = 30000,
    },
}


-- ██╗░░░░░██╗███████╗███████╗░██████╗░██╗░░░██╗░█████╗░██████╗░██████╗░
-- ██║░░░░░██║██╔════╝██╔════╝██╔════╝░██║░░░██║██╔══██╗██╔══██╗██╔══██╗
-- ██║░░░░░██║█████╗░░█████╗░░██║░░██╗░██║░░░██║███████║██████╔╝██║░░██║
-- ██║░░░░░██║██╔══╝░░██╔══╝░░██║░░╚██╗██║░░░██║██╔══██║██╔══██╗██║░░██║
-- ███████╗██║██║░░░░░███████╗╚██████╔╝╚██████╔╝██║░░██║██║░░██║██████╔╝
-- ╚══════╝╚═╝╚═╝░░░░░╚══════╝░╚═════╝░░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═════╝░

Config.Lifeguard = {
    Location = vector3(-1482.05, -1029.87, 6.15), -- Location to delivery the guy when you grabe him
    Wait = math.random(30000,60000), -- Time to wait for one person on ocean
    Time = 5000, -- Time to grabbing the person on ocean
    Payment = {
        Enable = true, -- Enable give money to player when save a ped?
        Type = "cash", -- "cash" or "bank"
        Min = 20, -- Min amount of money
        Max = 40, -- Max amount of money
    },
    PedLocations = { -- List of spawnpoints where npc spawn 
        vector3(-1701.26, -1351.27, -0.55),
        vector3(-1581.51, -1669.88, -0.41),
        vector3(-1525.7, -1502.16, -0.09),
        vector3(-1418.12, -1745.81, -0.52),
        vector3(-1514.0, -1812.1, -0.6),
        vector3(-1675.07, -1823.06, -0.64),
        vector3(-1763.84, -1704.54, -0.41),
    },
    Peds = {
        "u_f_y_danceburl_01",
        "u_f_y_hotposh_01",
        "u_m_m_spyactor",
        "ig_lifeinvad_02",
        "u_m_y_danceburl_01",
        "ig_milton",
        "u_m_y_smugmech_01",
        "ig_nervousron",
        "u_m_y_caleb",
        "ig_bankman",
        "s_m_y_prisoner_01",
        "s_m_y_grip_01",
        "s_m_y_chef_01",
        "ig_ortega",
        "s_m_m_pilot_01",
        "ig_priest",
        "s_m_m_highsec_01",
        "s_m_m_fiboffice_01",
        "ig_ramp_hic",
        "ig_ramp_hipster",
        "mp_m_forgery_01",
        "ig_roccopelosi",
        "mp_f_forgery_01",
        "ig_siemonyetarian",
    }
}


-- ███████╗██╗░░██╗████████╗██████╗░░█████╗░
-- ██╔════╝╚██╗██╔╝╚══██╔══╝██╔══██╗██╔══██╗
-- █████╗░░░╚███╔╝░░░░██║░░░██████╔╝███████║
-- ██╔══╝░░░██╔██╗░░░░██║░░░██╔══██╗██╔══██║
-- ███████╗██╔╝╚██╗░░░██║░░░██║░░██║██║░░██║
-- ╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝

-- These locations is for player positions. This is to prevent cheaters from using applications to execute triggers. 
-- If you change the locations of the NPC's change here too. 
-- If you use the original script, don't change anything here.
Config.AntiTrigger = true -- This enable checks distance of player and more prevent execute trigger events with external programs.

Config.LocationsTrigger = {
    RentVehicle = vector3(-1483.0, -1029.77, 5.13),
    RentJetski = vector3(-1610.22, -1147.52, 0.6),
    RentBike = vector3(-1268.97, -1482.06, 4.32),
    Selling = vector3(-1482.44, -1029.93, 6.14),
}

Last updated