πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Configuration

Framework Settings

Config = {}

-- Use "esx" or "qb"
Config.Framework = "qb"
-- If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = "es_extended"
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"

Interaction Settings

-- If you want to use the target system, set it to true
Config.useTarget = true
-- If you want to use the draw text when you don't use target, set it to true
Config.useDrawText = true
-- Draw text font. For chinese characters use 0
Config.alertTextFont = 4

Interaction Options

  • Config.useTarget: Enable/disable target system (QB-Target/OX-Target)
  • Config.useDrawText: Enable/disable on-screen text prompts when not using target
  • Config.alertTextFont: Font ID for draw text (use 0 for Chinese characters)

Blip Configuration

Blips = {
    ["LTD"] = {
        useBlips = true,
        blip = 59,
        blipColor = 15,
        blipScale = 0.7,
        blipText = "Store"
    },
    ["24/7"] = {
        useBlips = true,
        blip = 59,
        blipColor = 15,
        blipScale = 0.7,
        blipText = "Store"
    },
    ["Liquor"] = {
        useBlips = true,
        blip = 93,
        blipColor = 15,
        blipScale = 0.7,
        blipText = "Liquor"
    }
}

Blip Options

  • useBlips: Enable/disable blips for this store type
  • blip: Blip sprite ID (59 = Store, 93 = Bar)
  • blipColor: Blip color (15 = Green, 1 = Red)
  • blipScale: Size of the blip (0.7 recommended)
  • blipText: Name displayed when hovering over blip

Language Settings

Lang.NoMoney = "You don't have enough money"
Lang.NoItems = "You don't have enough items in cart"
Lang.purchase = "The purchase has been successfully completed"
Lang.openSection = "Press ~f~E~w~ to open "

Notification Settings

function notifications(notitype, message, time)
    -- Change this trigger for your notification system
    TriggerEvent('codem-notification', message, time, notitype)
end

-- Notification types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

Animation Settings

-- Set to false if you don't want to use animations when picking up items
CC.useAnimation = true
-- Animation dictionary
CC.Animationdict = "mp_common"
-- Animation name
CC.Animationname = "givetake1_a"
-- Set to false if you don't want to use props when picking up items
CC.useProp = true
-- Prop name
CC.propName = "prop_carrier_bag_01"

Animation Options

  • useAnimation: Enable/disable pick-up animations
  • Animationdict: Animation dictionary to use
  • Animationname: Specific animation within the dictionary
  • useProp: Enable/disable props (shopping bags)
  • propName: Prop model to attach to player

Server Configuration

Discord Webhook

Webhook = "https://discord.com/api/webhooks/XXXXXXXXXXX"

Replace with your Discord webhook URL to log store purchases.

Money Management Functions

function CheckUserMoney(playerID, method, amount)
    -- Returns true/false if player has enough money
end

function PayWithCash(playerID, amount)
    -- Removes cash from player
end

function PayWithBank(playerID, amount)
    -- Removes money from player's bank account
end

function GiveItem(playerID, item, amount)
    -- Gives item to player's inventory
end

[!WARNING] Don't touch the first line of the configuration file