> For the complete documentation index, see [llms.txt](https://baspel.gitbook.io/baspel-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baspel.gitbook.io/baspel-docs/scripts/baspel-wheel-clamp/configs.md).

# Configs

Here you can find configurations for ESX and QB frameworks.

### sh\_config.lua

{% tabs %}
{% tab title="ESX" %}
This config.lua is customized for ESX Framework

<pre class="language-lua" data-overflow="wrap"><code class="lang-lua"><strong>Config = {}
</strong>
-- Debug --
Config.Debug = false -- true or false if you want it

-- Base --
Config.Framework = 1 -- 1 - esx or 2 - qb or 3 - none, if none you have to set notify to other, allowed jobs to nil and you cant use items or inventory check
Config.FrameworkExport = 'es_extended' -- 'es_extended' or 'qb-core'
Config.Notify = 1 -- 1 - esx, 2 - qb or 3 - other
Config.Target = 3 --  1 - ox-target, 2 - qb-target or 3 - none
Config.QBTargetExport = 'qb-target' -- work only if you use qb-target
Config.TargetIcon = 'fa-solid fa-podcast' -- icon for target
Config.AllowedJobs = {'police'} -- You can add more or nil for everyone // if you use Config.Framework = 'none' you should this let it be on nil... // You can add table like this {'police', 'ambulance'} or nil or 'police' this only works for ox-target // qb-target settings is different, if you want to use multiple jobs you have to set {['police'] = 0, ['ambulance'] = 0} this means job.name and grade
Config.GradesOnly = false -- True or false, use only if you dont use target system, if you turn true you have to only use ['police'] = 0, ['ambulance'] = 4 etc... in AllowedJobs

-- Animation --
Config.Animation = {
    dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', -- Animation dictionary
    clip = 'machinic_loop_mechandplayer', -- Animation clip
    times = {
        addClamp = 10000, -- Time to put on wheelclamp
        removeClamp = 10000 -- Time to take off wheelclamp
    }
}

-- Language --
Config.Language = {
    ['targetLabel'] = 'Put on/Put off Wheelclamp',
    ['forceRemoveLabel'] = 'Force remove Wheelclamp',
    ['displayText'] = 'Press ~INPUT_CONTEXT~ to put on/take off wheel clamp',
    ['forceRemoveText'] = 'Press ~INPUT_DETONATE~ to force remove wheel clamp',
    ['noJob'] = 'You arent allowed person!',
    ['noItem'] = 'You dont have wheelclamp!',
    ['noForceItem'] = 'You dont have bolt cutter or lockpick!',
    ['notClamped'] = 'This vehicle does not have a wheel clamp!'
}
</code></pre>

{% endtab %}

{% tab title="QBCore" %}
This config.lua is customized for QBCore Framework

{% code overflow="wrap" %}

```lua
Config = {}

-- Debug --
Config.Debug = false -- true or false if you want it

-- Base --
Config.Framework = 2 -- 1 - esx or 2 - qb or 3 - none, if none you have to set notify to other, allowed jobs to nil and you cant use items or inventory check
Config.FrameworkExport = 'qb-core' -- 'es_extended' or 'qb-core'
Config.Notify = 2 -- 1 - esx, 2 - qb or 3 - other
Config.Target = 2 --  1 - ox-target, 2 - qb-target or 3 - none
Config.QBTargetExport = 'qb-target' -- work only if you use qb-target
Config.TargetIcon = 'fa-solid fa-podcast' -- icon for target
Config.AllowedJobs = {['police'] = 0, ['bcso'] = 0} -- You can add more or nil for everyone // if you use Config.Framework = 'none' you should this let it be on nil... // You can add table like this {'police', 'ambulance'} or nil or 'police' this only works for ox-target // qb-target settings is different, if you want to use multiple jobs you have to set {['police'] = 0, ['ambulance'] = 0} this means job.name and grade
Config.GradesOnly = false -- True or false, use only if you dont use target system, if you turn true you have to only use ['police'] = 0, ['ambulance'] = 4 etc... in AllowedJobs

-- Animation --
Config.Animation = {
    dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', -- Animation dictionary
    clip = 'machinic_loop_mechandplayer', -- Animation clip
    times = {
        addClamp = 10000, -- Time to put on wheelclamp
        removeClamp = 10000 -- Time to take off wheelclamp
    }
}

-- Language --
Config.Language = {
    ['targetLabel'] = 'Put on/Put off Wheelclamp',
    ['forceRemoveLabel'] = 'Force remove Wheelclamp',
    ['displayText'] = 'Press ~INPUT_CONTEXT~ to put on/take off wheel clamp',
    ['forceRemoveText'] = 'Press ~INPUT_DETONATE~ to force remove wheel clamp',
    ['noJob'] = 'You arent allowed person!',
    ['noItem'] = 'You dont have wheelclamp!',
    ['noForceItem'] = 'You dont have bolt cutter or lockpick!',
    ['notClamped'] = 'This vehicle does not have a wheel clamp!'
}
```

{% endcode %}
{% endtab %}

{% tab title="Standalone" %}
This config is customized for standalone

With a standalone you cant use target system, job system and item check system

{% code overflow="wrap" %}

```lua
Config = {}

-- Debug --
Config.Debug = false -- true or false if you want it

-- Base --
Config.Framework = 3 -- 1 - esx or 2 - qb or 3 - none, if none you have to set notify to other, allowed jobs to nil and you cant use items or inventory check
Config.FrameworkExport = 'qb-core' -- 'es_extended' or 'qb-core'
Config.Notify = 3 -- 1 - esx, 2 - qb or 3 - other
Config.Target = 3 --  1 - ox-target, 2 - qb-target or 3 - none
Config.QBTargetExport = 'qb-target' -- work only if you use qb-target
Config.TargetIcon = 'fa-solid fa-podcast' -- icon for target
Config.AllowedJobs = nil -- You can add more or nil for everyone // if you use Config.Framework = 'none' you should this let it be on nil... // You can add table like this {'police', 'ambulance'} or nil or 'police' this only works for ox-target // qb-target settings is different, if you want to use multiple jobs you have to set {['police'] = 0, ['ambulance'] = 0} this means job.name and grade
Config.GradesOnly = false -- True or false, use only if you dont use target system, if you turn true you have to only use ['police'] = 0, ['ambulance'] = 4 etc... in AllowedJobs

-- Animation --
Config.Animation = {
    dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', -- Animation dictionary
    clip = 'machinic_loop_mechandplayer', -- Animation clip
    times = {
        addClamp = 10000, -- Time to put on wheelclamp
        removeClamp = 10000 -- Time to take off wheelclamp
    }
}

-- Language --
Config.Language = {
    ['targetLabel'] = 'Put on/Put off Wheelclamp',
    ['forceRemoveLabel'] = 'Force remove Wheelclamp',
    ['displayText'] = 'Press ~INPUT_CONTEXT~ to put on/take off wheel clamp',
    ['forceRemoveText'] = 'Press ~INPUT_DETONATE~ to force remove wheel clamp',
    ['noJob'] = 'You arent allowed person!',
    ['noItem'] = 'You dont have wheelclamp!',
    ['noForceItem'] = 'You dont have bolt cutter or lockpick!',
    ['notClamped'] = 'This vehicle does not have a wheel clamp!'
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

### sv\_config.lua

{% tabs %}
{% tab title="Server config" %}
This configuration is for frameworks etc... same

```lua
-- Database settings --
Config.SaveIntoDatabase = false -- true or false, if you want to save into database
Config.OwnedVehiclesTable = 'owned_vehicles' -- table where is owned vehicles

-- Check time for entity --
Config.CheckTime = 10000-- In ms, check if doesnt entity exist, if not, then script will delete visible prop

-- Items/Inventory --
Config.ItemName = false -- name of the item which will be used 'wheelclamp', if nil then no item will be required, if you use Config.Framework = 'none' then you should set this to nil, because you cant use items or inventory check
Config.ForceRemoveItems = false -- items that can force-remove the clamp {lockpick, bolt_cutter}, if nil then no items will be required, if you use Config.Framework = 'none' then you should set this to nil, because you cant use items or inventory check

-- Webhook --
Config.Webhook = {
	enabled = true,
	url = 'https://discord.com/api/webhooks/1526298085561598043/GDscvJk2Y7XWIYVug-7URHdYat36wQ7wVQ3tiRxnBdu87v3bkgXFoPYhOVloXqK9NupF',
	username = 'Wheelclamp',
	avatar = '',
	color = 16753920,
}

```

{% endtab %}
{% endtabs %}
