Configuration

Configuration for TD Warehouse Resource

ESX Version

Select the ESX version you are using on your server.

Config.NewESX = true

Accounts

Set the account you want to use when buying warehouse.

Config.Moneys = {
    ['bank'] = 'Bank', -- ['Account'] = Label
    ['money'] = 'Money',
    ['black_money'] = 'Dirty Money'
}

Discord Webhook

Enable and set your discord webhook.

Config.WebHook = {
    Staff = { -- Staff actions
        enable = true, -- false to disable discord log
        link = ''
    },
    Player = { -- Player actions
        enable = true,
        link = ''
    }
}

Commands

Chose the command for create and teleport to warehouse.

Config.CmdCreate = 'createwh'

Config.TpCmd = 'tpwh'

Police Jobs

Set your own police jobs.

Config.PoliceJob = {
    "police",
    "sherif"
}

Hacking Item

Chose the item you want for hacking the warehouse door.

Config.Hackitem = 'laptop'

Warehouses Type

Only for advanced users. Set your own IPL for the warehouse interior.

Config.Warehouse = {
    [1] = { -- ex_exec_warehouse_placement_interior_1_int_warehouse_s_dlc_milo	
        enterCoords = vector4(1104.8359375,-3099.4558105469,-38.999950408936,91.471572875977),
        pcCoords = vector3(1087.7410888671875, -3101.304443359375, -39.2005500793457),
        invPlaces = {
            [1] = vector4(1103.8045654296875, -3096.8291015625, -40.00032424926758, 0.00),
            [2] = vector4(1101.30029296875, -3096.840087890625, -40.00032424926758, 0.00),
            [3] = vector4(1097.560302734375, -3096.7880859375, -40.00032424926758, 0.00),
            [4] = vector4(1095.031005859375, -3096.80517578125, -40.00032424926758, 0.00),
            [5] = vector4(1091.33447265625, -3096.835205078125, -40.00032424926758, 0.00),
        },
        invProp = 'prop_boxpile_06a',
        invWeight = 200
    },
    [2] = { -- ex_exec_warehouse_placement_interior_0_int_warehouse_m_dlc_milo
        enterCoords = vector4(1072.8876953125,-3102.5168457031,-38.999950408936,87.815612792969),
        pcCoords = vector3(1048.34814453125, -3100.665771484375, -39.20009231567383),
        invPlaces = {
            [1] = vector4(1067.6466064453125, -3102.6728515625, -40.00032424926758, -178.99998474121094),
            [2] = vector4(1065.241455078125, -3102.579345703125, -40.00032424926758, -178.99998474121094),
            [3] = vector4(1062.7210693359375, -3102.61328125, -40.00032424926758, -178.99998474121094),
            [4] = vector4(1067.5633544921875, -3095.6982421875, -40.00032424926758, -178.99998474121094),
            [5] = vector4(1065.1529541015625, -3095.56298828125, -40.00032424926758, -178.99998474121094),
        },
        invProp = 'prop_boxpile_02c',
        invWeight = 350
    },
    [3] = { -- ex_exec_warehouse_placement_interior_2_int_warehouse_l_dlc_milo
        enterCoords = vector4(1027.4019775391,-3101.4743652344,-38.999881744385,90.589134216309),
        pcCoords = vector3(995.248291015625, -3100.016357421875, -39.2005500793457),
        invPlaces = {
            [1] = vector4(1018.0673217773438, -3097.018310546875, -40.00697326660156, 1.78628122806549),
            [2] = vector4(1015.6838989257812, -3097.13037109375, -40.0069580078125, -2.00),
            [3] = vector4(1013.291259765625, -3097.1220703125, -40.0069580078125, 0.00),
            [4] = vector4(1018.1005249023438, -3102.70654296875, -40.0069580078125, 2.00),
            [5] = vector4(1015.678466796875, -3102.691650390625, -40.0069580078125, -4.00),
        },
        invProp = 'hei_prop_carrier_cargo_04b',
        invWeight = 500
    },
}

Notification

Set your own notification system. Ox Lib for example.

function Notify(message, type, title, duration)
    lib.notify({
        title = title,
        description = message,
        type = type,
        duration = duration,
    })
end

Locales

Set your own text for notifications and labels.

Config.Locales = { -- EN Locales
    inventorylabel = "Inventory",
    managewarehouse = "Warehouse Management",
    createwhsize = "Warehouse Size",
    createwhaccount = "Payment Account",
    createwhprice = "Price",
    whinfosizesmall = "small",
    whinfosizesmedium = "medium",
    whinfosizeslarge = "large",
    warehouselabel = "Warehouse",
    buywarehouse = "Buy Warehouse",
    size = "Size",
    storage = "Storage",
    open = "Open",
    close = "Close",
    warehouse = "the warehouse",
    enter = "Enter",
    getout = "Exit",
    sell = "Sell",
    hackdoor = "Hack the Door",
    warehousecanthack = "Can't hack, security enhanced!",
    failhack = "Hacking failed! Warehouse security increased!",
    warehouseopen = "The warehouse is now open!",
    canthacknoitem = "Can't hack without support item!",
    breakdoor = "Break the Door",
    progressopenlabel = "Opening Warehouse",
    buystorage = "Buy New Storage",
    createkey = "Create a Key",
    admindeleteowner = "Remove Owner",
    adminwebhookdeleteowner = "Warehouse Owner Removed",
    admindeletewarehouse = "Delete Warehouse",
    adminwebhookdeletewarehouse = "Warehouse Deleted",
    adminwebhookcreatekeywarehouse = "Key Created for Warehouse",
    adminteleporttowarehouse = "Teleport to Warehouse",
    createwarehouse = "Create a Warehouse",
    adminwebhookcreatewarehouse = "Warehouse Created",
    webhookwarehousebuy = "Warehouse Purchase",
    warehouseallreadybuyed = "Warehouse Already Purchased!",
    nomoney = "You don't have enough",
    webhookbuykey = "Key Purchased",
    noaccess = "Don't touch that!",
    webhookwarehousesell = "Warehouse Sold",
    warehousedeleted = "Warehouse Deleted",
    alertownerhack = "Failed hack attempt on the warehouse! Enhanced security disabled.",
    cantopenwithoutkey = "You can't open the door without the key!",
    webhookpoliceopenwarehouse = "Warehouse Forced Open by Police",
    webhookplayerhackwarehouse = "Warehouse Door Hacked",
    webhookalerton = "Warehouse Enhanced Security Triggered",
    storagebuy = "Warehouse Storage Successfully Purchased",
    webhookstoragebuy = "Additional Storage Purchased",
}

Last updated