folderconfig.lua

Full View

Config = {}

Config.Framework = "ESX" -- Either "ESX" or "QBCore"
Config.Locale = "en" -- Supported locales: hu (Hungarian), en (English), de (German), fr (French)
Config.NotificationSystem = 'ox_lib'  -- Choose your notification system: 'ox_lib', 'tnotify', 'okoknotify', 'print', or 'framework'
Config.InteractionType = "3dtext" -- Choose interaction type: "ox_target" or "3dtext"
Config.SnowPileTimer = 10000 -- The delay (in milliseconds) between snow pile spawn (default is 10 seconds)
Config.Webhook = "" -- Webhook URL for Discord notifications.
Config.Debug = false -- Debug true/false

-- NPC settings
Config.NPC = {
    position = vector4(910.6548, -1515.3040, 30.6461, 162.3995), -- Coordinates for the NPC: x, y, z (height), and heading (orientation)
    model = "s_m_y_dockwork_01", -- NPC's model (can be customized to any ped model)
    showBlip = true, -- Determines if the NPC's location is visible on the map as a blip (only appears when snowing)
    blipSprite = 280, -- Blip icon ID for the NPC (customizable; refer to GTA blip sprite list)
    blipColor = 3 -- Blip color ID for the NPC (customizable; refer to GTA blip color list)
}

-- Work vehicle settings
Config.WorkVehicle = "18f350plow" -- The model of the vehicle provided for the job (default: a snow plow)
Config.WorkVehicleSpawn = vector4(902.9912, -1520.3574, 30.2604, 223.5582) -- Spawn location for the work vehicle: x, y, z, heading
Config.WorkVehicleRent = 250 -- Rental price for the work vehicle (players pay this amount to rent)

-- Vehicles allowed for snow clearing
Config.SnowPlowVehicles = {"bulldozer", "18f350plow"} -- List of vehicle models that players can use to clear snow piles (must include the work vehicle)

Config.SnowShovelItem = 'snowshovel' -- Snow shovel item
Config.SnowShovelPrice = 50 -- Snow shovel price

-- Snow pile spawn locations
Config.SnowPiles = {
    vector4(522.5325, -1500.7517, 29.2987, 180.0), -- Coordinates and heading for each snow pile spawn point
    vector4(433.4982, -1259.2942, 31.3214, 120),
    vector4(841.7726, -1555.6750, 29.8310, 24.5416),
    vector4(930.0480, -132.5629, 75.7145, 56.1433),
    vector4(140.4135, -874.0775, 30.5433, 339.5080),
    vector4(398.4833, -600.7281, 28.7156, 325.0965),
    vector4(-376.6089, -199.7923, 36.8908, 303.0942),
    vector4(-723.0191, -40.0105, 37.8403, 117.2147),
    vector4(-1120.6448, -786.9822, 17.9738, 136.9310),
    vector4(-1087.8595, -1399.2509, 5.0366, 164.3575),
    vector4(108.2504, -1842.8533, 25.4362, 324.1765),
    vector4(1294.7799, 1197.3722, 107.3809, 7.0050),
    vector4(301.5515, 2585.5090, 44.3057, 34.3099),
    vector4(-215.3892, 3827.1545, 38.1576, 18.7651),
    vector4(2439.9734, 3990.8049, 36.9166, 327.6516),
    vector4(-55.4656, 6482.7329, 31.3874, 315.5663),
    vector4(-51.5212, 6335.0518, 31.3327, 315.1584),
    vector4(-387.0577, 6171.8936, 31.4805, 47.4390),
    vector4(-723.1946, 5439.4019, 43.1732, 260.9891),
    vector4(-3090.7322, 707.1859, 19.4681, 203.7514),
}

Config.MaxSnowPiles = 10  -- Maximum number of snow piles that can spawn on the map simultaneously

-- Reward for clearing snow piles
Config.RewardPerSnowPile = 100 -- Amount paid to the player for each cleared snow pile

-- Notification system settings
Config.Notifications = {
    ox_lib = function(msg, msgType)
        lib.notify({
            position = 'top', -- Notification display position
            type = msgType, -- Type of notification (e.g., info, success, error)
            description = msg, -- Notification text
            duration = 5000 -- Duration in milliseconds for the notification
        })
    end,

    tnotify = function(msg, msgType)
        exports['t-notify']:Alert({
            style = msgType, -- Notification style (e.g., info, success, error)
            message = msg, -- Notification text
            duration = 5000 -- Duration in milliseconds for the notification
        })
    end,

    okoknotify = function(msg, msgType)
        exports['okokNotify']:Alert('Notification', msg, 3000, msgType) -- Custom notification system with title and message
    end,

    print = function(msg, _)
        print(msg) -- Displays the message in the server console
    end,

    framework = function(msg, msgType)
        if Config.Framework == "qb-core" then
            QBCore.Functions.Notify(msg, msgType) -- QBCore's built-in notification system
        elseif Config.Framework == "esx" then
            ESX.ShowNotification(msg) -- ESX's built-in notification system
        end
    end
}

Last updated