Configuration

With all of our resources, you also get much configuration, here is some explanation for it!

circle-exclamation

Config Example

Here you can see a config.lua example with all additions you'll need

```lua
local IS_SERVER = IsDuplicityVersion()



Config = {}


if not IS_SERVER then
    -------------- Client side ---------------------
    Config.PoliceJobs = {"police","paletosheriff", "sahp"}
    Config.UnlockingCaseTime = 100000
    Config.IPL = {
        "bkr_biker_interior_placement_interior_5_biker_dlc_int_ware04_milo",
        "ex_exec_warehouse_placement_interior_2_int_warehouse_l_dlc_milo",
    }
    Config.Minigame = {
        rememberNumbers = 7,
        timeForRemember = 2000, -- 2000 ms = 2s
    }
    Config.mask = 46


    Config.ObjectModel = "prop_idol_case_02"


    -- Hidden stashes
    Config.UseSkillCheck  = false


else 
    -------------- Server side ---------------------
    Config.UseRegisterUsableItem = false  -- THIS IS ALLOWS REGISTER USABLE ITEM server/server_data.lua
    Config.DefaultRoute = 8860
    Config.CardsSpawn = 20
    Config.ObjectModel = "prop_mb_crate_01a"
    Config.KeycardsOnGround = {
        "keycard_red",
        "keycard_white",
        "keycard_blue",
    }
    
    Config.CardsFromDirtyCard = {
        "keycard_green",
        "keycard_red",
        "keycard_white"
    }
    -- These are the briefcases that randomly spawn.
    Config.MaxStashes = 20
    Config.Items = {
       {name="WEAPON_PISTOL_MK2",count=1},
       {name="money",count=math.random(10,5000)},
       {name="crowbar",count=1},
       {name="crowbar",count=1},
       {name="crowbar",count=1},
       {name="crowbar",count=1},
       {name="phone",count=1},
       {name="lockpick",count=math.random(1,3)},
       {name="radio",count=math.random(1,3)},
       {name="radio",count=math.random(1,3)},
       {name="radio",count=math.random(1,3)},
       {name="keycard_white",count=1},
       {name="keycard_red",count=1},
       {name="keycard_white",count=1},
       {name="blueprint_combatrifle",count=1},
       {name="lockpick",count=math.random(1,3)},
       {name="lockpick",count=math.random(1,3)},
       {name="lockpick",count=math.random(1,3)},
       {name="diamond",count=math.random(1,3)},
       {name="diamond",count=math.random(1,3)},
       {name="gold", count=1},
       {name="gold", count=1},
       {name="ammo_rifle_box",count=1},
       {name="ammo_rifle2_box",count=1},
       {name="carbon", count = 2},
       {name="carbon", count = 2},
       {name="carbon", count = 1},
       {name="carbon", count = 10},
       {name="blueprint_machinepistol", count = 2},
       {name="blueprint_pistol50", count = 1},
       {name="blueprint_machinepistol", count = 1},
       {name="blueprint_pistol50", count = 1},
       {name="blueprint_machinepistol", count = 1},
       {name="blueprint_pistol50", count = 1},
       {name="blueprint_heavyrevolver",count=1},
       {name="blueprint_heavyrevolver",count=1},
    }   


    function SendLogs(source,log_action,action_message,data)
        local player = BRIDGE.GetPlayerData(source)
        local log_data = {
            player = GetPlayerName(source),
        }
        table.insert(log_data,data)
        TriggerEvent("logs:send", {
            player = source, action = log_action, 
            message = ("Player %s "..action_message):format(GetPlayerName(source)), 
            data = log_data
        })
    end

    Config.KeycardResetCaseItem = 15 -- Minutes
    Config.KeycardResetTime = 120 -- Minutes

    

end
```

Server side data

Last updated