# Raid Config

`HackingTerminal:` At this point the intirgated hacker is game.

`EnterPoint:` This item is activated when the hacking was successful. After that everyone can     enter/exit here.

`LeavePoint:` At this point you come out of the bunker.

`WeaponRoom:` At this point the armory is deposited from the Army

`DisableAlarm:` At this point the selected jobs from Config.ArmyJob can disable the alarm if it was activated by the raid.

```lua
Config.ArmyRaid = {
    HackingTerminal = {
        x = -2058.06,
        y = 3241.33,
        z = 31.52
    },

    EnterPoint = {
        x = -2057.82,
        y = 3240.45,
        z = 31.51,
        heading = 100
    },

    LeavePoint = {
        x = 895.56,
        y = -3245.45,
        z = -98.25,
        heading = 100
    },

    WeaponRoom = {
        x = 902.84,
        y = -3182.37,
        z = -97.06
    },

    DisableAlarm = {
        x = -2347.10,
        y = 3269.37,
        z = 32.81
    }
}
```

This tells you if you want to use the raid system, so if it is false you can use it and if it is true its disabled.

```lua
Config.DisalbeRaid = false
```

This number specifies how many people must be online with a job from Config.SendAlarmToJobs.

```lua
Config.MinimalJobs = 0
```

All jobs entered here get a message when the raid is robbed if Config.SendAlarmToJobs is true

```lua
Config.Alertjob = {"police", "army"}
```

If this is set to true, all jobs that are set to Config.Alertjob will get an alert when the raid get robbed.

```lua
Config.SendAlarmToJobs = true
```

This number specifies how long you have to wait before you can start after a new raid. (Minutes)

```lua
Config.RaidTimeoutAfterStarted = 10
```

This number indicates after how many minutes the alarm should be stopped automatically. (minutes)

```lua
Config.TimeForStopAlarm = 5
```

This number tells how long the front door should be open from the raid robbery. After this time the door will be closed again and you can only get out.

```lua
Config.TimeforRaid = 15
```

If you don't want to use the intigrated hacking system (utk\_fingerprint and utk\_hackdependency) from us you can set this parameter to false. Important!! If UseHack is false, EnterPoint and HackingTerminal must be exactly the same from raid coordinates, otherwise it can lead to problems. You can add your own hacking function here: Config.OwnHackFunction and you need to delete the stream folder. If you want to use our hacking system put this on true and you need to add this to your server.cfg `sv_enforceGameBuild to 2545`

If you have further questions, please contact the support.

```lua
Config.UseHack = false
```

This is the item name for the item you need when Config.UseHack is true.

Important!! This item must also exist in the database with the name specified here. In the Insert.sql you will find a template.

```lua
Config.EnergyHackingTool = 'hack_usb'
```

This simply says whether the item should be removed from Config.RemoveItemAfterHack when you start hacking.

```lua
Config.RemoveItemAfterHack = false
```

This number tells how many levels you have to make in the intigrated game (Config.UseHack = true). You must set a minimum of 1 level and a maximum of 4.

```lua
Config.EnergyHackingLevels = 4
```

This number tells how many times you can lose the integrated hacking-game before the alarm starts. You must set a minimum of 1  and a maximum of 4.

```lua
Config.EnergyHackingLifes = 1
```

This number tells how long the player has to hack. Please specify in minutes. You must set a minimum of 1  and a maximum of 9. We highly recomment to set it between 1-3.

```lua
Config.TimeforHacking = 1
```

If you want to use your own hacking system insert your code here.&#x20;

Important!! for this Config.UseHack must be false.

```lua
Config.OwnHackFunction = function()
    local Number = math.random(1, 2)

    if Number == Number then

        --This code is getting execxuted if the player successed the game
        ESX.ShowNotification((Config.Language[Config.Locale]['HackingSuccess']):format(Config.TimeforRaid))
        PlayerCanEnterBunker = true
        TriggerServerEvent('ds_armysystem:OpenRaidDoor', true)
    else
        --This code is getting execxuted if the player doesnt successed the game
        ESX.ShowNotification(Config.Language[Config.Locale]['HackingFailed'])
        TriggerServerEvent('SendAlarmToJobs')
        AlarmIsActive = true
        TriggerEvent('ds_armysystem:AutoStopAlarm')
    end
end
```

These functions must be executed when the player manages the hacking.

```lua
ESX.ShowNotification((Config.Language[Config.Locale]['HackingSuccess']):format(Config.TimeforRaid))
PlayerCanEnterBunker = true
TriggerServerEvent('ds_armysystem:OpenRaidDoor', true)
```

These functions must be called if the player does not manage the hacking.

```lua
ESX.ShowNotification(Config.Language[Config.Locale]['HackingFailed'])
TriggerServerEvent('SendAlarmToJobs')
AlarmIsActive = true
TriggerEvent('ds_armysystem:AutoStopAlarm')
```


---

# 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://gmd-scripts.gitbook.io/gmd/gmd_armysystem/configuration/raid-config.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.
