# Global Store Settings

{% tabs %}
{% tab title="Base Config" %}

<figure><img src="https://2124765416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWi8k2v7yUXjm0K8CdtiU%2Fuploads%2FHXBbA2gFR43ShRPnoDBa%2FStoreRobberiesGlobalStoreSettings.JPG?alt=media&#x26;token=0699d99d-7ab6-417d-8e5e-fd98229b78e9" alt=""><figcaption><p>Base Config - Global Store Settings</p></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="info" %}
*The <mark style="color:yellow;">`Config.GlobalStoreSettings`</mark> section in the configuration file allows you to customize various settings that apply to all stores in the script. Let's go through each setting and explain its purpose.*
{% endhint %}

{% hint style="danger" %}
This setting is used to control how long it takes for the store to reset after it has been r

1. <mark style="color:yellow;">`StoreResetTime`</mark>:
   * This setting determines the time in minutes for a store to reset after a certain period of inactivity.
   * When a store resets, it returns to its original state, with all items and entities respawned and ready for the next interaction.
   * In the example, the store will reset after 30 minutes of inactivity.
2. <mark style="color:yellow;">`StoreResetTimeAfterRobbed`</mark>:
   * This setting specifies the time in minutes for a store to reset after it has been robbed.
   * If a store is successfully robbed, this setting will override the `StoreResetTime` and control the reset duration.
   * In the example, the store will reset 30 minutes after being robbed, regardless of the value set in `StoreResetTime`.
3. <mark style="color:yellow;">`LockDoorsOnRegisterLockpick`</mark>:
   * This is a boolean setting that determines whether the store doors should be locked when a player is attempting to lockpick a register.
   * If set to `true`, the doors will automatically lock when a player starts lockpicking a register, preventing others from entering or leaving the store during the process.
   * This can add an extra layer of challenge and realism to the robbery gameplay.
4. <mark style="color:yellow;">`LockDoorsOnSafeAttempt`</mark>:
   * Similar to `LockDoorsOnRegisterLockpick`, this setting controls whether the store doors should be locked when a player is attempting to crack the safe.
   * If set to `true`, the doors will lock when a player starts the safe cracking process, preventing interruptions or easy escapes.
5. <mark style="color:yellow;">`UseStoreBlips`</mark>:
   * This boolean setting determines whether store blips should be displayed on the players' maps.
   * If set to `true`, players will see blips on their map indicating the locations of the stores.
   * This can help players easily find and navigate to the stores in the game world.
6. <mark style="color:yellow;">`UseInsideStoreBlips`</mark>:
   * This setting controls whether blips for stealable items inside the store should be displayed on the players' maps when they are inside the store.
   * If set to `true`, players will see blips indicating the locations of stealable items within the store, making it easier to find and interact with them.
7. <mark style="color:yellow;">`AlertBlip`</mark>:
   * This subsection defines the settings for the alert blip that appears for whitelisted jobs (e.g., police) when a store robbery takes place.
   * `enabled`: If set to `true`, the alert blip will be displayed to the whitelisted jobs when a robbery occurs.
   * `sprite`: The sprite ID for the blip icon. In the example, it is set to 161.
   * `scale`: The size scale of the blip. A higher value makes the blip larger.
   * `color`: The color ID for the blip. In the example, it is set to 3.
   * `name`: The name or label displayed for the blip. In the example, it is set to "Store Robbery Alert".
   * `duration`: The time in seconds for the alert blip to remain visible. In the example, it is set to 300 seconds (5 minutes).
   * ![](https://2124765416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWi8k2v7yUXjm0K8CdtiU%2Fuploads%2FywPp7SlwoN2HjpG7Tv9T%2F2024-04-0800-58-09-ezgif.com-video-to-gif-converter.gif?alt=media\&token=a3ff7692-db40-4ac3-a2ee-125cf455b9e6)
     {% endhint %}
