# Config

#### Config :&#x20;

````lua
```lua
Config.DialogMenu = {
    ['jailPlayer'] = {
        title = 'jail Player',
        type = 'number',
        label = 'Time',
        description = 'Enter Time [1 = 1min]',
        icon = 'hashtag',
    },
    ['UnjailPlayer'] = {
        title = 'Unjail Player',
        type = 'number',
        label = 'ID',
        description = 'ADD IN HERE ID PLAYER',
        icon = 'hashtag',
    },
}

Config.Stations = {
    ['blips'] = {
        {
            label = 'Sheriff Stations', -- you can change label the blips in minimaps
            coords = vector3(-441.47, 6029.34, 31.34), -- vec3 coords blips
            sprite = 60, -- this sprit you can change this sprit in here => [https://docs.fivem.net/docs/game-references/blips/]
            Colour = 69, -- colour of the player
        },
    },
}

Config.Command = {
    duty = 'shduty', -- duty command
    jail = 'shjail', -- this is jail command
    depot = 'shdepot', -- this command you can use shdepot to send vehicle in depot
    impound = 'shimpound', -- and this is impound command if want to impound any vehicle use the command
    OpenBilling = 'OpenBilling', -- this default billing system
    SheriffMenu = 'SheriffMenu', -- ox_lib Context Menu you can open this is menu only [command]
}

Config.ImpoundCoords = {
    ['impound'] = {
        vector3(-448.15, 5994.57, 31.34), -- you can change the coords impound or if you want add other vec you can add here
    },
    ['spawnvehicle'] = {
        vector4(-451.44, 5998.27, 31.34, 88.24) -- and this vehicle spawning if you un impound vehicle
    }
}

Config.Objects = {
    cone = {        
        model = 'prop_roadcone02a', -- this is objects
        freeze = false -- if you add here false is not freeze the object if you add true automaticly freeze the object
    },
    ConeLight = {   
        model = 'prop_air_conelight',
        freeze = false 
    },
    barrier = {     
        model = 'prop_barrier_work05',
        freeze = true 
    },
    roadsign = {    
        model = 'prop_snow_sign_road_06g',
        freeze = true 
    },
    tent = {        
        model = 'prop_gazebo_01',
        freeze = true 
    },
    light = {       
        model = 'prop_worklight_03b',    
        freeze = true 
    },
    smalllight = {  
        model = 'prop_worklight_01a',
        freeze = true
    },
}

Config.jailInfo = {
    distance = 2.5, -- you can change distance with player for the exemple [distance < 2.5 ] you can jail the player else [>2.5] you cant jail the play
}

Config.dutyCoords = {
    ['pedName'] = Config.DeafultPed,
    ['distanceTarget'] = 3,
    ['duty'] = {
        vector4(-449.0, 6012.49, 31.72, 318.09), -- duty coords you can add more coords in here
    },
}

Config.StashCoords = {
    ['pedName'] = Config.DeafultPed,
    ['distanceTarget'] = 3,
    ['stash'] = {
        vector4(-432.93, 5990.56, 31.72, 44.43), --stash coords you can add more coords in here
    },
}

Config.ArmoryCoords = {
    ['pedName'] = Config.DeafultPed,
    ['distanceTarget'] = 3,
    ['armory'] = {
        vector4(-426.68, 5996.64, 31.72, 45.52), --ArmoryCoords you can add more coords in here
    },
}

Config.GarageCoords = {
    ['spawncar'] = vector4(-482.24, 6024.55, 30.71, 222.26), -- in here coods vec4 if you want change posistion spawn car you can change in here  
    ['storecars'] = vector3(-472.2, 6035.89, 31.34), -- and here coords to store or delete car
    ['pedName'] = Config.DeafultPed,
    ['message'] =  'Press ~INPUT_PICKUP~ to impound Vehicle', -- this is small message Drawed
    ['distanceTarget'] = 3, -- this distance target to open garage ui
    ['garage'] = {
        vector4(-478.91, 6014.83, 31.34, 316.48), -- you can add more garage in here
    },
}

Config.HelicopterCoords = {
    ['spawn'] = vector4(-475.63, 5988.18, 31.34, 313.17), -- this is vec4 t o spawn helicopter
    ['storeheli'] = vector3(-475.21, 5988.6, 31.34), -- and here vec3 to stored or delete the helicopter
    ['pedName'] = Config.DeafultPed,
    ['message'] =  'Press ~INPUT_PICKUP~ to impound Helicopter', -- this message draw if you want to stored helicopter
    ['TargetDistance'] = 3, -- this distance target to open helicopter ui garage
    ['pedgarage'] = {
        vector4(-490.02, 6002.56, 31.32, 227.75), -- you can add more helicopter garages
    },
}

Config.Helicopter = {
    { name = "polmav",  model = "polmav"}, -- here name the helicopter and model
    { name = "Sher",    model = "supervolito2"},
    { name = "Sheriff", model = "polmav"},
    { name = "Test",    model = "supervolito2"},
}

Config.Vehicles = {
    { name = 'sheriff Sheriff', model = 'county2', img = 'assets/vehicle.png' }, -- this is name the vehicle and model to spawn vehicle and image to draw in Garage
    { name = 'sheriff Cruiser', model = 'county4',img = 'assets/vehicle.png' },
    { name = 'Porche Sheriff', model = 'county10', img = 'assets/vehicle.png' },
    { name = 'sheriff Cruiser', model = 'county8',img = 'assets/vehicle.png' },
    { name = 'Porche Sheriff', model = 'sheriff', img = 'assets/vehicle.png' },
    { name = 'sheriff Cruiser', model = 'sheriff2',img = 'assets/vehicle.png' },
    { name = 'sheriff Cruiser', model = 'sheriff2',img = 'assets/vehicle.png' },
    { name = 'sheriff Sheriff', model = 'sheriff', img = 'assets/vehicle.png' },
    { name = 'sheriff Cruiser', model = 'sheriff2',img = 'assets/vehicle.png' },
}

Config.ArmoryItems = {
    {name = "Stungun",      itemName = "weapon_stungun",        image = "assets/armory/weapon_stungun.png",        grades = {0, 1, 2, 3, 4}}, -- Example with multiple grades
    {name = "nightstick",   itemName = "weapon_nightstick",     image = "assets/armory/weapon_nightstick.png",     grades = {0, 1, 2, 3, 4}},
    {name = "flashlight",   itemName = "weapon_flashlight",     image = "assets/armory/weapon_flashlight.png",     grades = {0, 1, 2, 3, 4}},
    {name = "Radio",        itemName = "radio",                 image = "assets/armory/radio.png",                 grades = {0, 1, 2, 3, 4}},
    {name = "Pisol",        itemName = "weapon_pistol",         image = "assets/armory/weapon_pistol.png",         grades = {0, 1, 2, 3, 4}},
    {name = "Armor",        itemName = "heavyarmor",            image = "assets/armory/police_bulletproof.png",    grades = {0, 1, 2, 3, 4}},
    {name = "Smg",          itemName = "weapon_smg",            image = "assets/armory/weapon_smg.png",            grades = {0, 1, 2, 3, 4}},
    {name = "pumpshotgun",  itemName = "weapon_pumpshotgun",    image = "assets/armory/weapon_pumpshotgun.png",    grades = {0, 1, 2, 3, 4}},
    {name = "carbinerifle", itemName = "weapon_carbinerifle",   image = "assets/armory/weapon_carbinerifle.png",   grades = {0, 1, 2, 3, 4}},
    {name = "Smg Ammo",     itemName = "smg_ammo",              image = "assets/armory/smg_ammo.png",              grades = {0, 1, 2, 3, 4}},
    {name = "Pistol Ammo",  itemName = "pistol_ammo",           image = "assets/armory/pistol_ammo.png",           grades = {0, 1, 2, 3, 4}},
    {name = "Rifle Ammo",   itemName = "rifle_ammo",            image = "assets/armory/rifle_ammo.png",            grades = {0, 1, 2, 3, 4}},
    {name = "Shotgun Ammo", itemName = "shotgun_ammo",          image = "assets/armory/shotgun_ammo.png",          grades = {0, 1, 2, 3, 4}},
    {name = "Shotgun Ammo", itemName = "shotgun_ammo",          image = "assets/armory/shotgun_ammo.png",          grades = {0, 1, 2, 3, 4}},
}

Config.NotifyText = {
    ---eneral Notification
    DutyNotify = {text = 'you are not a Sheriff Member', type = 'error', time = 3000}, -- if you other player use the command and or target and you do not have job auto draw this notify 
    VehicleStored = {text = 'Vehicle Impounded', type = 'success', time = 3000}, -- here this notify if you stored vehicle in station sheriff
    HelicopterStored = {text = 'Helicopter Impounded', type = 'success', time = 3000}, --here this notify if you stored Helicopter in station sheriff
    ---Armory Notification
    ArmoryAddItem = {text = 'Item successfully received!', type = 'success', time = 3000}, -- armory notification [if add countity and click confirm auto draw this notify]
    ArmoryFaild = {text = 'Failed to give item. Inventory might be full.', type = 'error', time = 3000}, -- in here if you have inventory full auto draw this notify
    ItemInvalid = {text = 'Item could not be given. Try again later.', type = 'error', time = 3000}, -- for the exemple if add item name not correct in config auto draw this notify
    ---JAILNOTIFY
    JailTime = {text = 'Time must be higher than 0', type = 'error'}, -- 
    JailPlayer = {text = 'No one nearby', type = 'error'}, -- if member sheriff you want to send player in jail if you sheriff distance > 2.5 draw this notify
    AutoTime = {text = 'You sent the person to prison for %{time} months'}, -- this is small notify to send the player in jail
    commandNotify = {text = 'Command For Sheriff Only', type = 'error'}, -- if you other player use the command and you do not have job draw this notify
    ---Lib.dialog Notify Sent Jail
    InvalidPlayerId = {text = 'Invalid Number'}, -- this is notify if enter id not correct auto draw this notification
    --inmpound
    InmpoundVehicle = {text = 'Vehicle Impound Success'}, -- this notify if you impound vehicle success
    DepotImpounded = {text = 'Vehicle taken into depot for $%{price}'}, -- and this is small notify to send the vehicle correctly To Depot
    TakeOutImpound = {text = 'car Unimpounde Success'}, -- in here if you un impound vehicle in station sheriff  Auto Draw The Vehicle
    -- Custom Billing Notify
    CustomBillNotify = {text = 'For Sheriff Only'}, -- this notify if other player and you do not have job auto draw this notification
    CustomBillFaild = {text = 'You cannot bill yourself'}, -- in you cannot bill yourself if you want to billing youself you cant to use this
    CustomBillSuccess = {text = 'Bill sent successfully to player with ID'}, -- in here if send the billing success auto draw this notify
    --search
    SearchCash = {text = 'Found $%{cash} on the civilian'}, -- in here if search the player cash Draw this notification
}
```
````


---

# 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://errorscripts.gitbook.io/errorscript/products/404-sheriffjob/config.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.
