Zea Development - Documentation
StoreWebsiteDiscord
  • Welcome
  • General
    • Downloading Resources
    • Transferring Resources
    • Resource Support
    • Escrow Errors
  • Our Resources
    • z_hose
      • Resource Configuration
        • Configuration Modules
      • Compatibility with ox_inventory
      • Resource Usage
      • Developer Resources
        • Client Exports
        • Server Exports
    • z_boot (Coming Soon!)
      • Resource Configuration
        • Configuration Modules
        • Item Creation
      • Developer Resources
        • Client Exports
    • z_els
      • Resource Configuration
      • Resource Usage
      • Developer Exports
      • Creating Patterns
      • Directional Types
    • z_fires
      • Resource Configuration
      • JSON Configuration
      • Resource Usage
      • Developer Exports
      • Materials List
    • z_ppvfan
      • Resource Configuration
      • Resource Usage
    • zTurnout-System
      • Resource Configuration
      • Resource Usage
      • Trigger Events
    • zWigWags
      • Resource Configuration
      • Resource Usage
      • Trigger Events
    • zFire-Alarm
      • Resource Configuration
      • Resource Usage
    • z9m-Ladder
      • Resource Configuration
      • Resource Usage
    • z105m-Ladder
      • Resource Configuration
      • Resource Usage
    • z135m-Ladder
      • Resource Configuration
      • Resource Usage
    • zCustody-Alarm
      • Resource Configuration
      • Resource Usage
    • zFire-Pole
      • Resource Configuration
      • Resource Usage
    • zTurnout-Rack
      • Resource Configuration
      • Resource Usage
    • zPager
      • Resource Configuration
      • Resource Usage
    • zTurnouts
      • Resource Configuration
      • Resource Usage
Powered by GitBook
On this page
  • Door Id
  • Compartments
  • Slots
  • Adding new items
  1. Our Resources
  2. z_boot (Coming Soon!)
  3. Resource Configuration

Configuration Modules

This page will outline and explain how to create a configuration module and how to configure the vehicle for its setup.

Creating a configuration module

1

Navigate to the modules folder

Please navigate to the modules folder within the resource, which can be found at the following path. settings > modules

2

Create a new file

Now that you are in the appropriate location, please proceed to create your module file. This can be accomplished by copying and pasting the provided example file.

3

Renaming your file

Now you have a new module file, Please ensure the name of the file is the spawn code of the vehicle.

4

Vehicle Configuration

You now have a new work vehicle! Within the file you create, there are configurable variables and values that are unique to the vehicle. The details regarding this content are explained later on this page.


Door Id

This variable takes a string input, which should correspond to the door ID you wish to interact with on this vehicle. All door IDs are listed below.

  • Driver Side Front : dside_f

  • Driver Side Rear : dside_r

  • Passenger Side Front : pside_f

  • Passenger Side Rear : pside_r

  • Bonnet / Hood : bonnet

  • Boot / Trunk : boot

---@section bootOffset
---@description: This parameter enables the configuration of the boot interaction position on the vehicle.
doorId = 'boot',

Compartments

This table contains various variables. Within this table, there are two sub-tables; however, there may be instances where only one sub-table exists. The main sub-table corresponds to the main inventory page, while the weaponSafe sub-table pertains to the locked weapon safe inventory tab. Below is an example of a vehicle with and without a weapon safe.

return {     
    ---@section bootOffset
    ---@description: This parameter enables the configuration of the boot interaction position on the vehicle.
    doorId = 'boot',

    ---@section compartments
    ['compartments'] = {
        main = {
            slots = 18,
            items = {
                ['Traffic Cone'] = 3,
                ['Road Closed Sign'] = 1,
                ['Police Accident Sign'] = 1,
                ['Police Slow Sign'] = 1,

                ['Police Tape'] = 2,
                ['Red Key'] = 1,

                ['Firearms Helmet'] = 2,
                ['Firearms Shield'] = 1,

                ['First Aid Kit'] = 2,
                ['Fire Extinguisher'] = 1,
                ['Red Key'] = 1,
            },
        },

        weaponSafe = {
            slots = 18,
            pinKey = '4626',
            items = {
                ['Glock 19'] = 2,
                ['M4 Rifle'] = 2
            }
        },
    }
}
return {     
    ---@section bootOffset
    ---@description: This parameter enables the configuration of the boot interaction position on the vehicle.
    doorId = 'boot',

    ---@section compartments
    ['compartments'] = {
        main = {
            slots = 18,
            items = {
                ['Breathalyzer'] = 1,
                ['Drug Swab'] = 2,
                ['Police Jacket'] = 1,

                ['Traffic Cone'] = 3,
                ['Road Closed Sign'] = 1,
                ['Police Accident Sign'] = 1,
                ['Police Slow Sign'] = 1,

                ['Vehicle Stinger'] = 3,
                ['First Aid Kit'] = 2,
                ['Police Tape'] = 2,

                ['Fire Extinguisher'] = 1
            }
        },
    }
}

Slots

This variable accepts an integer input, representing the number of slots within this inventory tab.

slots = 18,

Adding new items

Adding new items to your inventory tab is straightforward. Below, you will find an example of an item. This item can be divided into two sections. The first section is the string, which represents the item name and can be found in the items.lua file. The second section indicates the quantity of the item that these vehicles can hold.

['Traffic Cone'] = 3,

PreviousResource ConfigurationNextItem Creation

Last updated 1 month ago

Page cover image