# Pawnshop Locations

{% hint style="success" %}
Adding more Pawnshop locations
{% endhint %}

* Adding more pawn shop locations is very simple via Config.Pawnshops
* Define the location for the shop in the coords field
* If you want a ped to spawn ensure you set usePed to true and then define which model you want to spawn otherwise it will spawn a circle zone to target
* Choose which payment type you would like for that specific pawnshop either cash, bank or dirtycash
* If using dirty cash ensure you have the correct item name assigned in **`addMoney`** function in **`pawnshops_server.lua`**

```lua
Config.Pawnshops = {
    ['custom_pawnshop'] = {
        name = 'Custom Pawn Shop Name', -- pawnshop name to be display as the menu header
        coords = vector4(-1459.47, -413.96, 35.74, 171.06), -- where to spawn the ped
        usePed = true, -- set to true to spawn a ped instead of a target cicle zone
        model = 'a_m_m_business_01', -- ped model to spawn
        money = 'cash', -- type of payment received from selling here use cash or bank or dirtycash (if using dirty cash ensure you have the item in your items.lua)
        owned = {
            playerOwned = true, -- is this shop player owned
            owner = 'SWG17640', -- citizen id
            stashLoc = vector3(-1455.93, -414.11, 35.63), -- coords to create circlezone for counter stash where players put their items they want sell to the owner
            marketPlaceLoc = vector3(-1452.84, -412.16, 35.76), -- coords to create the circlezone for the market place where shop owners sell their products listed below in itemsAllowed
        },
        blip = {
            enabled = true, -- enable or disable the blip for this pawnshop
            id = 58, -- blip id
            colour = 5, -- blip colour
            scale = 0.6, -- blip scale
            name = 'Pawn Shop' -- blip name
        },
        timers = {
            enabled = false, -- set to false to be open 24/7
            open = 8, --opening hour
            close = 18, -- closing hour
        },
        itemsAllowed = { -- define items that are allowed to be sold at this pawnshop or makret place if its player owned
            ['lockpick'] = { price = 25, ownedPrice = 50, },
            ['phone'] = { price = 150, ownedPrice = 250,  },
        },
    },
```

***

{% hint style="success" %}
Player owned pawn shops
{% endhint %}

* To set a player owned pawnshop you must enabled playerOwned to true and then define the relevant information required ( citizen id, stashLoc and marketPlaceLoc )
* owner must be the citizen id of the player
* **`stashLoc`** must be a **`vector3`** location for where the counter is located
* **`marketPlaceLoc`** must be a **`vector3`** location for where the market place selling menu is located

```lua
owned = {
    playerOwned = true, -- is this shop player owned
    owner = 'SWG17640', -- citizen id of the player that owns the store
    stashLoc = vector3(-1455.93, -414.11, 35.63), -- coords to create circlezone for counter stash where players put their items they want sell to the owner
    marketPlaceLoc = vector3(-1452.84, -412.16, 35.76), -- coords to create the circlezone for the market place where shop owners sell their products listed in itemsAllowed for that pawnshop
},
```

***

{% hint style="success" %}
Blips
{% endhint %}

* To use blips for the pawnshops set enabled to true and then define the relevant information
* blip info can be found [**`here`**](https://docs.fivem.net/docs/game-references/blips/)

```lua
blip = {
    enabled = true, -- enable or disable the blip for this pawnshop
    id = 58, -- blip id
    colour = 5, -- blip colour
    scale = 0.6, -- blip scale
    name = 'Pawn Shop' -- blip name (set these to the same name to group them up)
},
```

***

{% hint style="success" %}
Open / Close Times
{% endhint %}

* To set store opening and closing times ensure you have set enabled to true and then define the opening and closing times ( this is in a 24 hour clock format)

```lua
timers = {
    enabled = true, -- set to false to be open 24/7
    open = 8, --opening hour
    close = 18, -- closing hour
},
```

***

{% hint style="success" %}
Items
{% endhint %}

* To add items that can be sold at that pawnshop you must define them in **`itemsAllowed`**
* The `key` is the item name this must be in your items.lua
* The **`price`** is the value of that item **`PER UNIT`** if being sold at a **`NON PLAYER OWNED`**
* The **`ownedPrice`** value is the value of that item **`PER UNIT`** if being sold from the owner at a  **`PLAYER OWNED STORE`**
* For player owned stores set this value slightly higher so the store makes a profit

```lua
itemsAllowed = { -- define items that are allowed to be sold at this pawnshop or makret place if its player owned
    ['lockpick'] = { price = 25, ownedPrice = 50, },
    ['phone'] = { price = 150, ownedPrice = 250,  },
},
```


---

# 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://lusty94-scripts.gitbook.io/documentation/paid/pawn-shop/pawnshop-locations.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.
