Configuration

change the needs in config.lua

config.lua

Config = {}

-- Framework: "esx" / "qbox" /
Config.Framework = "esx"

-- Fixed 3-character plate prefix
Config.PlatePrefix = "MAD"

Config.Ped = {
    model = 'cs_bankman',
    coords = vec4(-56.5983, -1098.6799, 26.4223, 28.0455),
    blipName = "Vehicle Claim",
    blip = 225
}

Config.foodPed = {
    model = 'cs_bankman',
    coords = vec4(-299.4521, -921.3476, 31.2106, 70.7202),
    blipName = "Food Claim",
    blip = 211
}

-- Vehicle spawn location
Config.VehicleSpawn = vec4(-48.1339, -1116.6262, 26.4340, 4.7797) 

-- Coupon item names
Config.vehicleCouponItem = "vehicle_coupon" 
Config.foodCouponItem    = "food_coupon" 
Config.cashCouponItem    = "cash_coupon"

-- Vehicle list (label, spawnName)
Config.Vehicles = {
    {label = "Sultan RS", model = "sultanrs"},
    {label = "Elegy Retro", model = "elegy"},
    {label = "Comet S2", model = "comet6"}
}

Config.FoodItems = {
    {name = "burger", count = 2},
    {name = "water", count = 2}
}

Config.cashReward = 10000

Config.Notify = {
    vehicleTitle = 'Vehicle Claim',
    vehcileDesc = 'You do not have a vehicle coupon in your inventory.',
    vehicleClaim = "You received your %s with plate %s!",

    foodTitle = 'Food Claim',
    foodDesc = 'You do not have a food coupon in your inventory.',
    foodClaim = 'You have claimed food coupon',

    cashTitle = 'Cash Coupon',
    cashDesc = 'You received $%s cash!',    
}

Config.Target = {
    Vehicle = {
        label = 'Claim Your Vehicle'
    },
    Food = {
        label = 'Redeem Food Coupon'
    }
}

sv_utils.lua

Last updated