Zen's Glovebox - ZenarchistCode/ZenModPack GitHub Wiki

download

What Is This?

This mod adds a small glovebox compartment inside vehicles (20 slots, 2x 10 rows).

It only adds them to vanilla cars (but to add them to modded cars there are examples below), and it can only be viewed while sitting in the front seat.

Only small items can be placed inside due to the inventory dimensions, so it's only really for storing tiny items (like you would in a real car).

Note: enabling this mod will also enable accessing the inventory while in a car (only the player inventory - not the vehicle inventory, and you cannot view items on the ground outside of the car).

Adding Modded Cars

To add the glovebox to modded cars you'll need to add custom cpp config.

Here is an example *.cpp file config for adding it to an Expansion land rover:

    // Expansion 
    class Expansion_Landrover_Base: CarScript
    {
        attachments[] += { "ZenCarGlovebox" };
        class GUIInventoryAttachmentsProps
        {
            class ZenCarGlovebox
            {
                name = "Glovebox";
                description = "Glovebox";
                icon = "missing";
                attachmentSlots[] = { "ZenCarGlovebox" };
            };
        };
    };

Master Config

To disable this mod set "ZenGlovebox": 0 in %server_profile/Zenarchist/Utilities/ZenModPackConfig.json

⚠️ **GitHub.com Fallback** ⚠️