Configs

Here you can find configurations for ESX and QB frameworks.

sh_config.lua

This sh_config.lua is customized for ESX Framework

Config = {}

-- Debug --
Config.Debug = true

-- Master settings --
Config.Framework = 1 -- 1 = ESX, 2 = QB
Config.FrameworkExport = 'es_extended' -- 'es_extended' or 'qb-core'
Config.InventorySystem = 1 -- 1 = ox-inventory, 2 = qb-inventory
Config.Notify = 1 -- 1 = esx, 2 = qb, 3 = other
Config.ChanceToWin = 0.15 -- 0.15*100 = 15%, you can change from 0.01 to 1, its chance to one winning symbol and his mount
Config.MoneyItem = 'money' -- only if you use inventory which has money as item
Config.AmountPrize = 100000 -- This give you the prize which you won $$$
Config.DepositPrice = nil -- Make sure you included this amount in to your cost in shop, because its deposit for used paper :D and it will give you back, you can set it to nil if you dont want it
Config.RemoveAfterUse = false -- If false it will remove instantly the item and will give you the prize or nothing also be sure if you want Config.DepositPrize if you dont want let it be on nil

-- Win & List of emojies --
Config.WinEmoji = 'πŸ’Ž'
Config.ListOfEmojies = {
    '🀑',
    'πŸ€',
    '🍎',
    '🍏',
    '🐺',
    '❀️',
    'πŸ”₯',
    'πŸ’€'
}

-- Target settings --
Config.Target = 3 -- 1 = ox-target, 2 = qb-target or 3 = none // It will be used for selling or the buying scratch card
Config.QBTargetExport = 'qb-target' -- Work only if you use qb-target
Config.TargetSettings = {
    radius = 1,
    distance = 1,
    -- Only for ped with target none --
    keyToBuy = 38,
    keyToSell = 49
}

-- Shop settings --
Config.Shop = { -- if you dont want use this option just set to nil
    {
        modelOrPosOrPed = 'v_ret_247_lotterysign', -- model (like v_ret_247_lotterysign or v_ret_247_lottery) or position !!vec3 only!! or ped settings // if you want use target system, you can add target on model here, you can use position too, for no target it will be only position
        itemSettings = {
            item = 'scratch_card', -- item which will be given to player
            count = 1, -- count of how many items will be given to player
            price = 60, -- price for buyable item
        }
    }
}

sv_config.lua

This configuration is for frameworks etc... same

-- Webhook system --
Config.Webhook = false -- if true you can set webhook path
Config.WebhookPath = 'xxx'

-- Don't touch this unless if you don't know what you doing
function sendToDiscord(header, message, webhook)
    local connect = {
          {
	      ['color'] = 16776960,
              ["title"] = header,
              ["description"] = message
          }
      }
    PerformHttpRequest(webhook, function(err, text, headers) end, 'POST', json.encode({embeds = connect}), { ['Content-Type'] = 'application/json' })
end

Last updated