> For the complete documentation index, see [llms.txt](https://sg-mapping.gitbook.io/sg-mapping-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sg-mapping.gitbook.io/sg-mapping-documentation/prop-placement-script-qb/configuration.md).

# Configuration

The Config File will allow you to set the various settings required to get the resource working as designed but adapted for your servers needs.

{% hint style="info" %}
You <mark style="color:red;">**must**</mark> set up the <mark style="color:blue;">**Config.Command**</mark> & *<mark style="color:blue;">**Config.Jobs**</mark>* before the script will run as this will depend on your servers job name and the command you want that job to use to activate the menu. \
\
This Menu is designed to work with only <mark style="color:red;">**ONE**</mark> job so ensure you don't try to add a second as the script will throw up errors.\
\
You can edit the *<mark style="color:blue;">**Config.Buttons**</mark>* to what ever buttons you require however you are <mark style="color:red;">**strongly advised**</mark> to <mark style="color:red;">**avoid**</mark> the WASD keys as this will cause you <mark style="color:orange;">movement issues</mark> when placing props and wanting to walk over to the location.\
\
The **Props section** will be updated with the latest props supported from other packs and therefore you must not change the <mark style="color:green;">**\['PROP\_ID']**</mark>. You can however alter the Label if you find it hard to identify the prop in game
{% endhint %}

{% hint style="info" %}
This Script can support other creators props however they will not be supported if errors are caused whilst third party props are installed. In order to add custom third party props  make sure you have the details in the correct place.\
\
\['*<mark style="color:blue;">**SG\_LLC0**</mark>*'] = { *<mark style="color:green;">-- The YDR model name</mark>*

```lua
                label = "Left-Lane Closed 0yds" -- Description of the prop
            },
```

{% endhint %}

{% hint style="info" %}
If you are not using <mark style="color:green;">**All**</mark> of our Prop Packs you will wish to <mark style="color:red;">**NULL**</mark> out the lines for the props you are not streaming. See below for Example:<br>

\
Before Edit&#x20;

<pre class="language-lua"><code class="lang-lua">    ['smallprops'] = {
        label = "Small Props",
        props = {
            ['sg_roadcone_clean'] = {
                label = "Highway Cone"
            },
            ['sg_roadcone_clean_stack'] = {
                label = "Highway Cone Stack"
            },
        }
    },



<a data-footnote-ref href="#user-content-fn-1">After Edit </a>

 --   ['smallprops'] = {
 --       label = "Small Props",
 --       props = {
 --           ['sg_roadcone_clean'] = {
 --               label = "Highway Cone"
 --           },
 --           ['sg_roadcone_clean_stack'] = {
 --               label = "Highway Cone Stack"
 --           },
 --       }
 --   },
</code></pre>

{% endhint %}

```lua
Config = {}
Config.Command = "CHANGE_ME"      -- You can change this to resolve conflicts with other scripts.
Config.Jobs = { "CHANGE_ME" } -- You can only have one job with access to this menu.
Config.Target = "qb-target" -- You can change this to "qb-target" or "ox_target" depending on which you use.
Config.Debug = false
Config.CheckTime = 1800


--██╗░░██╗███████╗██╗░░░██╗██████╗░██╗███╗░░██╗██████╗░░██████╗
--██║░██╔╝██╔════╝╚██╗░██╔╝██╔══██╗██║████╗░██║██╔══██╗██╔════╝
--█████═╝░█████╗░░░╚████╔╝░██████╦╝██║██╔██╗██║██║░░██║╚█████╗░
--██╔═██╗░██╔══╝░░░░╚██╔╝░░██╔══██╗██║██║╚████║██║░░██║░╚═══██╗
--██║░╚██╗███████╗░░░██║░░░██████╦╝██║██║░╚███║██████╔╝██████╔╝
--╚═╝░░╚═╝╚══════╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝░░╚══╝╚═════╝░╚═════╝░

Config.Buttons = {
    MoveForwards = 111,
    MoveBackwards = 112,
    MoveLeft = 108,
    MoveRight = 109,
    MoveUp = 172,
    MoveDown = 173,
    RotateForwards = 117,
    RotateBackwards = 118,
    RotateLeft = 174,
    RotateRight = 175,
    SnapToGround = 38,
    SaveProp = 176,
}
-- USE THESE CFX KEYBINDS FROM THE OFFICIAL SITE BELOW --
--https://docs.fivem.net/docs/game-references/controls/--


--██████╗░██████╗░░█████╗░██████╗░░██████╗
--██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝
--██████╔╝██████╔╝██║░░██║██████╔╝╚█████╗░
--██╔═══╝░██╔══██╗██║░░██║██╔═══╝░░╚═══██╗
--██║░░░░░██║░░██║╚█████╔╝██║░░░░░██████╔╝
--╚═╝░░░░░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚═════╝░

Config.Props = {
--    ['custom_menu'] = {                                                               --THIS TEMPLATE IS HOW SUBFOLDERS SHOULD BE LAYED OUT
--        label = "custom label",
--        props = {
--            ['MODEL NAME GOES HERE'] = {
--                label = "Description of the prop for easy identification"
--            },
--            ['MODEL NAME GOES HERE'] = {
--                label = "Description of the prop for easy identification"
--            },
['diversion'] = {
    label = "Diversion Signs",
    props = {
        ['SG_DR1L'] = {
            label = "Route One Left Arrow"
        },
        ['SG_DR1DL'] = {
            label = "Route One Diagonal Left Arrow"
        },
        ['SG_DR1S'] = {
            label = "Route One Ahead Arrow"
        },
        ['SG_DR1DR'] = {
            label = "Route One Diagonal Right Arrow"
        },
        ['SG_DR1R'] = {
            label = "Route One Right Arrow"
        },
        ['SG_DR2L'] = {
            label = "Route Two Left Arrow"
        },
        ['SG_DR2DL'] = {
            label = "Route Two Diagonal Left Arrow"
        },
        ['SG_DR2S'] = {
            label = "Route Two Ahead Arrow"
        },
        ['SG_DR2DR'] = {
            label = "Route Two Diagonal Right Arrow"
        },
        ['SG_DR2R'] = {
            label = "Route Two Right Arrow"
        },
    }
},
['speedprops'] = {
    label = "Speed Signs",
    props = {
        ['SG_20mph'] = {
            label = "20mph Sign"
        },
        ['SG_30mph'] = {
            label = "30mph Sign"
        },
        ['SG_40mph'] = {
            label = "40mph Sign"
        },
        ['SG_50mph'] = {
            label = "50mph Sign"
        },
        ['SG_60mph'] = {
            label = "60mph Sign"
        },
        ['SG_national'] = {
            label = "National Speed Sign"
        },
    }
},
    ['smallprops'] = {
        label = "Cones",
        props = {
            ['sg_roadcone_clean'] = {
                label = "Highway Cone"
            },
            ['sg_roadcone_clean_marker'] = {
                label = "Highway Cone With LED"
            },
            ['sg_roadcone_clean_stack'] = {
                label = "Highway Cone Stack"
            },
            ['sg_roadcone_cleanB'] = {
                label = "Blue Highway Cone"
            },
            ['sg_roadcone_cleanY'] = {
                label = "Yellow Highway Cone"
            },
            ['sg_roadcone_cleanG'] = {
                label = "Green Highway Cone"
            },
            ['sg_roadcone_cleanG_marker'] = {
                label = "Green Highway Cone With LED"
            },
            ['prop_roadcone01a'] = {
                label = "default GTA cone"
            },
            
        }
    },
    ['signprops'] = {
        label = "Signs",
        props = {
            ['SG_LLC0'] = {
                label = "Left-Lane Closed 0yds"
            },
            ['SG_LLC2'] = {
                label = "Left-Lane Closed 200yds"
            },
            ['SG_LLC4'] = {
                label = "Left-Lane Closed 400yds"
            },
            ['SG_LLC6'] = {
                label = "Left-Lane Closed 600yds"
            },
            ['SG_LLC8'] = {
                label = "Left-Lane Closed 800yds"
            },
            ['SG_RLC0'] = {
                label = "Right-Lane Closed 0yds"
            },
            ['SG_RLC2'] = {
                label = "Right-Lane Closed 200yds"
            },
            ['SG_RLC4'] = {
                label = "Right-Lane Closed 400yds"
            },
            ['SG_RLC6'] = {
                label = "Right-Lane Closed 600yds"
            },
            ['SG_RLC8'] = {
                label = "Right-Lane Closed 800yds"
            },
            ['SG_FRLC0'] = {
                label = "Far Right-Lane Closed 0yds"
            },
            ['SG_FRLC2'] = {
                label = "Far Right-Lane Closed 200yds"
            },
            ['SG_FRLC4'] = {
                label = "Far Right-Lane Closed 400yds"
            },
            ['SG_FRLC6'] = {
                label = "Far Right-Lane Closed 600yds"
            },
            ['SG_FRLC8'] = {
                label = "Far Right-Lane Closed 800yds"
            },
            ['SG_FLLC0'] = {
                label = "Far Left-Lane Closed 0yds"
            },
            ['SG_FLLC2'] = {
                label = "Far Left-Lane Closed 200yds"
            },
            ['SG_FLLC4'] = {
                label = "Far Left-Lane Closed 400yds"
            },
            ['SG_FLLC6'] = {
                label = "Far Left-Lane Closed 600yds"
            },
            ['SG_FLLC8'] = {
                label = "Far Left-Lane Closed 800yds"
            },
            ['SG_FLLO0'] = {
                label = "Far Left-Lane Open 0yds"
            },
            ['SG_FLLO2'] = {
                label = "Far Left-Lane Open 200yds"
            },
            ['SG_FLLO4'] = {
                label = "Far Left-Lane Open 400yds"
            },
            ['SG_FLLO6'] = {
                label = "Far Left-Lane Open 600yds"
            },
            ['SG_FLLO8'] = {
                label = "Far Left-Lane Open 800yds"
            },
            ['SG_FRLO0'] = {
                label = "Far Right-Lane Open 0yds"
            },
            ['SG_FRLO2'] = {
                label = "Far Right-Lane Open 200yds"
            },
            ['SG_FRLO4'] = {
                label = "Far Right-Lane Open 400yds"
            },
            ['SG_FRLO6'] = {
                label = "Far Right-Lane Open 600yds"
            },
            ['SG_FRLO8'] = {
                label = "Far Right-Lane Open 800yds"
            },
            ['SG_RWAE'] = {
                label = "Roadworks End"
            },
            ['SG_RWADP'] = {
                label = "Roadworks Delays Possible"
            },
        }
    },
    ['arrowprops'] = {
        label = "Arrows",
        props = {
            ['SG_ARRIG'] = {
                label = "Arrow Right"
            },
            ['SG_ARLEF'] = {
                label = "Arrow Left"
            },
        }
    },
    ['barriers'] = {
        label = "Barriers",
        props = {
            ['sg_red_roadbarrier'] = {
                label = "Red Barrier"
            },
            ['sg_white_roadbarrier'] = {
                label = "White Barrier"
            },
            ['SG_CBAL'] = {
                label = "Angle Left Concrete Barrier"
            },
            ['SG_CBAR'] = {
                label = "Angle Right Concrete Barrier"
            },
            ['SG_CBSD'] = {
                label = "Slope Drop Concrete Barrier"
            },
            ['SG_CBSL'] = {
                label = "Long Concrete Barrier"
            },
            ['SG_CBSS'] = {
                label = "Short Concrete Barrier"
            },
            ['SG_CBTS'] = {
                label = "Twin Split Concrete Barrier"
            },
        }
    }
}

```

[^1]:
