# Arc-CabinRobbery

<figure><img src="/files/FMOxHWMLsRnuyO6ec7jv" alt=""><figcaption></figcaption></figure>

## What is Arc-CabinRobbery?

*Arc-CabinRobbery is a Very Optimised but Advanced Script for any FiveM Server looking for more Robbery Opportunities for their Players.*

*This Script allows Players in your Server to Rob a Cabin you Specify for Money. This Script makes the Players have to lockpick doors, Disable Alarms, Find Entry Points and walk out with Items in Hand (literally no pun included)*

*This Script can advance your Servers Robberys with a Unique Robbery that has never been made before ever.*

## Installation:

1. Download the script from our Official Github or Purchase the Script from our Official Tebex store:   \ <mark style="color:purple;">\[GITHUB]👉</mark> <https://github.com/whisperoffical1>   \ <mark style="color:purple;">\[TEBEX]👉</mark> [<mark style="color:purple;">https://arctyx-studios.tebex.io</mark>](https://arctyx-studios.tebex.io)
2. Extract the ZIP into a Regular Folder with the same name:

"<mark style="color:red;">Arc-CabinRobbery</mark>"

3. Place the folder into your resources directory.
4. Add the following line to your server.cfg:

<mark style="color:red;">ensure Arc-CabinRobbery</mark>

5. Configure the <mark style="color:yellow;">Config.lua</mark> (if available) to your server's needs.
6. If using <mark style="color:yellow;">ps-dispatch</mark> then: Locate <mark style="color:yellow;">ps-dispatch</mark>, Locate <mark style="color:yellow;">client/alerts.lua</mark> and open.
7. Add the following to bottom of file:   \ <mark style="color:red;">`local function CabinRobbery()`</mark>   \ <mark style="color:red;">`local coords = GetEntityCoords(cache.ped)`</mark>

   <mark style="color:red;">`local dispatchData = {`</mark>   \ <mark style="color:red;">`message = locale('cabinrobbery'), -- add this into your locale`</mark>   \ <mark style="color:red;">`codeName = 'cabinrobbery', -- this should be the same as in config.lua`</mark>   \ <mark style="color:red;">`code = '10-90',`</mark>   \ <mark style="color:red;">`icon = 'fa-solid fa-building-shield',`</mark>   \ <mark style="color:red;">`priority = 2,`</mark>   \ <mark style="color:red;">`coords = coords,`</mark>   \ <mark style="color:red;">`gender = GetPlayerGender(),`</mark>   \ <mark style="color:red;">`street = GetStreetAndZone(coords),`</mark>   \ <mark style="color:red;">`alertTime = nil,`</mark>   \ <mark style="color:red;">`jobs = { 'police' }`</mark>   \ <mark style="color:red;">`}`</mark>

   <mark style="color:red;">`TriggerServerEvent('ps-dispatch:server:notify', dispatchData)`</mark>   \ <mark style="color:red;">`end`</mark>   \ <mark style="color:red;">`exports('CabinRobbery', CabinRobbery)`</mark>
8. if using <mark style="color:yellow;">ps-dispatch</mark> then: Locate <mark style="color:yellow;">ps-dispatch,</mark> Locate <mark style="color:yellow;">shared/config.lua</mark> and open.
9. Add the following under "<mark style="color:yellow;">bobcatsecurityheist</mark>" <mark style="color:red;">`['cabinrobbery'] = { radius = 0, sprite = 500, color = 5, scale = 1.5, length = 2, sound = 'robberysound', offset = false, flash = false },`</mark>
10. Locate <mark style="color:red;">Blood-CabinRobbery</mark>, Add sound file from <mark style="color:yellow;">install/sounds/alarm.ogg</mark> to <mark style="color:yellow;">interact-sound</mark> resource.
11. Locate <mark style="color:red;">Blood-CabinRobbery</mark>, Open file from <mark style="color:yellow;">install/items.txt</mark> and paste contents to <mark style="color:yellow;">qb-core/shared/items.lua</mark> at bottom inside table.
12. Restart your server or use refresh + ensure from console followed with the folder name.

## Dependencies

1. [QBCore](https://github.com/qbcore-framework/qb-core)
2. [qb-target](https://github.com/qbcore-framework/qb-target) or [ox\_target](https://github.com/overextended/ox_target) (only if you want to use targetting)
3. [Blood-DrawText](https://bld-development.tebex.io/package/blood-drawtext) (only if you want to use my DrawText System) (script can use GTAs built in drawtext to)
4. [T3\_Lockpick](https://github.com/T3development/t3_lockpick) or [qb-minigames](https://github.com/qbcore-framework/qb-minigames)
5. [ps-dispatch](https://github.com/Project-Sloth/ps-dispatch) or [cd-dispatch](https://codesign.pro/product/4206357) or [nx\_dispatch](https://github.com/nextscripts-5m/dispatch) (rename folder to nx\_dispatch) or [cd-dispatch](https://codesign.pro/product/4206357)
6. [ps-ui](https://github.com/Project-Sloth/ps-ui) or [qb-minigames](https://github.com/qbcore-framework/qb-minigames)
7. [Container MLO - Changer](https://www.gta5-mods.com/maps/mlo-container-sp-fivem) (optional), Script pre-setup with this MLO


---

# 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://bld-scripting.gitbook.io/bld-development-or-documentation/scripts/quickstart.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.
