Raid Config

File: config.lua

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.

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.

Config.DisalbeRaid = false

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

Config.MinimalJobs = 0

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

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.

Config.SendAlarmToJobs = true

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

Config.RaidTimeoutAfterStarted = 10

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

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.

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.

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.

Config.EnergyHackingTool = 'hack_usb'

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

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.

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.

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.

Config.TimeforHacking = 1

If you want to use your own hacking system insert your code here.

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

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.

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.

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

Last updated