# UK Police Station (Sandy Shores)

### Product Information

Purchase → [Tebex Store - UK Police Station (Sandy Shores)](https://store.lgmods.co.uk/package/6893697)

Sandy Shores PD is a complete exterior and interior overhaul / rebuild of the original Sandy Shores Sheriff's Station & Sandy Shores Medical Centre  on Alhambra Drive in the GTA V game world.

It includes many additional rooms such as: - Custody Desk & Charge Room - Holding Cells - Cell Block - Briefing rooms, interview rooms, evidence storage, lockers, and much more

It also features fully functioning front and side gates  that can be opened via commands, a gate code, or whitelisted jobs.

{% hint style="warning" %}
Be aware that this product is encrypted and distributed via Tebex for the FiveM platform only. Editing of some content will be restricted.

You cannot install this product directly into GTA5 as a modification and must use the FiveM platform to use it as a streamed resource.
{% endhint %}

### Contents

| File / Folder    | Information                                                                          | Required to be configured?   |
| ---------------- | ------------------------------------------------------------------------------------ | ---------------------------- |
| `[client]`       | Folder containing encrypted scripts for multiple functions within the police station | No – Do not edit             |
| `[html]`         | Folder containing files for the panel UI, audio, etc.                                | No – Do not edit             |
| `[stream]`       | Folder containing the models and textures used to replace original content           | Optional – see Configuration |
| `.fxap`          | FiveM file required for the modification to load                                     | No – Do not edit             |
| `config.lua`     | Configuration for the modification (gate behaviour, whitelisting, etc.)              | Optional – see Configuration |
| `fxmanifest.lua` | FiveM config file to determine what files need to be loaded/streamed                 | No – Do not edit             |
| `server.lua`     | Encrypted script that links various elements of the addon                            | No – Do not edit             |

{% hint style="danger" %}
Unless specifically mentioned, do not edit the files unless you know what you are doing. LGMods will not provide assistance to you if you have edited files outside of what has been set out to be edited by the customer.
{% endhint %}

### Installation

{% hint style="info" %}
**ℹ️ Note**\
These instructions assume you have a working FiveM server that you can already connect to.\
For help setting up a FiveM server, see: [FiveM Server Setup Guide](https://docs.fivem.net/docs/server-manual/setting-up-a-server/)
{% endhint %}

1. Locate the `resources` folder in your FiveM server installation (same directory as `server.cfg`).
2. Download the product from your [FiveM Keymaster](https://portal.cfx.re/assets) if you haven't already.
3. Extract the ZIP archive contents into the `resources` folder.
4. You should now have a folder named `LGMods_Sandy_UK` containing the files listed above.

{% hint style="info" %}
**ℹ️ Important**\
If you see an extra nested folder inside `LGMods_Sandy_UK`, move all contents up one level so the listed files/folders are directly inside `LGMods_Sandy_UK`. Otherwise the resource won't load properly.
{% endhint %}

5. Open your `server.cfg` file and add the following line below your other `ensure` lines:

```lua
ensure LGMods_Sandy_UK
```

Example:

```lua
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap

ensure LGMods_Sandy_UK
```

6. **Restart** your server. (MLO resources like this usually don't load correctly with the `start` command on a running server — a full restart is required.)

{% hint style="info" %}
**ℹ️ Streaming Note**\
When players first approach the location, FiveM streams the assets to their client. Depending on internet speed, some parts may take a few moments to fully appear. Be patient during initial load.
{% endhint %}

### Configuration

All editable settings are in **`config.lua`**. **Do not** edit any other files.

#### ESX / QBCore Whitelisting Settings

The framework and allowed jobs for gate access are configured here. Change `Config.Framework` to match your server (only if the framework is installed).

```lua
Config = {}
Config.Framework = "standalone"

Config.AllowedJobs = {
    "police",
    "sheriff",
    "ambulance"
}
```

{% hint style="warning" %}
ESX and QBCore are third party resources and are not included with this LGMods product, and we are unable to assist with their setup.

Only enable these options **if you have the framework installed**. Doing so without the framework being installed correctly is likely to cause errors with this script. Otherwise pick standalone.

Be careful to ensure each entry within the jobs array has apostrophes around the job role and a comma is placed after them, with exception to the last entry.
{% endhint %}

#### Front Gate / Side Gate Settings

```lua
Config.ShowPrompt = true

Config.Commands = {
    OpenGate = "opengate",
    ResetAlarm = "resetalarm"
}

Config.GateCode = {
    Required = true,
    Code = "1234"
}
```

* Set `Required = false` to disable the code and rely only on job whitelisting.
* `Code` must be exactly **4 numerical digits**.

#### Gate Behaviour

```lua
Config.Gate = { -- Main gate
    ActivationDistance = 2.0,
    TimeOpen = 10000,     -- in milliseconds
    SwingSpeed = 0.2
}

Config.SideGate = { -- Side gate
    TimeOpen = 10000,
    SwingSpeed = 0.2
}
```

Defaults are balanced — change only if needed.

#### Sound Configuration

```lua
Config.Sounds = {
    Volume = 0.5,
    Radius = 50.0
}
```

#### Targeting Configuration (optional)

```lua
Config.Targetting = {
    Enabled = false,
    TargetSystem = "ox_target"   -- "qb-target" or "ox_target"
}
```

If `Enabled = true`, interaction uses your targeting system instead of the E key prompt.

***

After editing `config.lua`, save it and reload the resource in console:

```
restart LGMods_Sandy_UK
```

{% hint style="danger" %}

## Common Issues

**Mirror Park Studios – Canonbury Estate**

There are known conflicts with the Canonbury Estate.\
Follow the steps below to resolve these issues:

#### Steps to Fix

1. **Access the Files**\
   Find the required files in the LG Mods Discord:\
   [LG Mods Discord Link](https://discord.com/channels/1116306722982740090/1166645294109294663/1386684471104897086)
2. **Download Files**\
   Download the **two files** linked in the message pinned/posted at the link above.
3. **Replace Files in the Canonbury Folder**
   * Place the downloaded files into:\
     `mps_estates/stream/canonbury/default/ymap`
   * Then **delete** the file `lr_cs4_roads.ymap` from the same folder.
4. **Download Additional File**\
   Download this extra fix file:\
   [Additional Fix File](https://discord.com/channels/1116306722982740090/1166645294109294663/1386692273105797251)
5. **Add to the OCLL Folder**\
   Place the downloaded file into:\
   `mps_estates/stream/canonbury/default/occl`

After completing these steps, the Canonbury Estate conflicts should be resolved.
{% endhint %}

Enjoy your brand new UK-themed Sandy Shores Police Station!


---

# 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://docs.lgmods.co.uk/mlo-interiors/uk-police-station-sandy-shores.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.
