# Configuration

<pre class="language-lua"><code class="lang-lua"><strong>Config = {}
</strong>Config.Framework = false -- 'ESX' (legacy only) 'QBCore' or false if you are not using any framework

-- for changing keys -> https://docs.fivem.net/docs/game-references/controls/

Config.Settings = {

    VEH_DETECTION = 15.0, -- increase it if u need it to work with bigger vehicles
    CANCEL_DISTANCE = 10.0, -- If you somehow move far from the door of vehicle, it will auto cancel it, always must be higher than SEAT DETECTION
    SEAT_DETECTION = 7.0, -- Distance check for action

    CANCEL_KEY = 73, -- X - Cancels action immediately,,,, set it to false to disable

    STEAL_VEHICLE = {
        job_restricted = false,
        jobs = {'police', 'ambulance'}, -- {'job1', 'job2'} or {}

        receive_keys = false,

        cooldown = 3, -- seconds

        interaction = {
            key = 38, -- E -- or false to disable, or 'e' if you wanna use fivem keybinding system
            command = 'stealvehicle' -- or false to disable
        }
    },
    PULL_PLAYER = {
        job_restricted = false,
        jobs = {'police', 'ambulance'}, -- {'job1', 'job2'} or {}

        receive_keys = false,

        cooldown = 3, -- seconds

        interaction = {
            key = 47, -- G -- or false to disable, or 'g' if you wanna use fivem keybinding system
            command = 'pulloutdriver' -- or false to disable
        }
    },

    FIVEM_KEYBINDS = { -- or true to use fivem keybinding option. Commands and keys (in interaction) needs to be enabled if you want to use this option.
        use_fivem_keybinds = false, -- true recommended for best performance
        steal_label = 'Steal Vehicle From Player',
        pull_label = 'Pull Player Out From Driver Seat'
    },

    ------------------------------
    -- GLOBAL RESTRICTIONS
    ------------------------------
    GLOBAL_RESTRICTIONS = {
        enable_blacklist = false,
        blacklist = {
            ['spawn_name'] = {
                PULL = false,
                STEAL = false,
            },
        },
        
        class_restrictions = true,
        classes = { -- VEHICLE CLASS RESTRICTIONS
            [0] = { --	0: Compacts
                PULL = true,
                STEAL = true,
            },	
            { --	1: Sedans
                PULL = true,
                STEAL = true,
            },
            { --	2: SUVs
                PULL = true,
                STEAL = true,
            },
            { --	3: Coupes
                PULL = true,
                STEAL = true,
            },
            { --	4: Muscle
                PULL = true,
                STEAL = true,
            },
            { --	5: Sports Classics
                PULL = true,
                STEAL = true,
            },
            { --	6: Sports
                PULL = true,
                STEAL = true,
            },
            { --	7: Super
                PULL = true,
                STEAL = true,
            },
            { --	8: Motorcycles
                PULL = true,
                STEAL = true,
            },
            { --	9: Off-road
                PULL = true,
                STEAL = true,
            },
            { --	10: Industrial
                PULL = true,
                STEAL = true,
            },
            { --	11: Utility
                PULL = true,
                STEAL = true,
            },
            { --	12: Vans
                PULL = true,
                STEAL = true,
            },
            { --	13: Cycles
                PULL = true,
                STEAL = true,
            },
            { --	14: Boats
                PULL = false, -- bit buggy still...
                STEAL = true,
            },
            { --	15: Helicopters
                PULL = true,
                STEAL = true,
            },
            { --	16: Planes
                PULL = false,
                STEAL = false,
            },
            { --	17: Service
                PULL = true,
                STEAL = true,
            },
            { --	18: Emergency
                PULL = false,
                STEAL = false,
            },
            { --	19: Military
                PULL = false,
                STEAL = false,
            },
            { --	20: Commercial
                PULL = true,
                STEAL = true,
            },
            { --	21: Trains
                PULL = false,
                STEAL = false,
            }
        }
    },
}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://andrew-grenade.gitbook.io/sheen-scripts/paid-resources/sh-player_carjacking/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
