Jack: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Codebox Update)
Line 91: Line 91:
|}
|}


==Code==
== Code ==
'''''From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>
  | lang = java
  | line = true
  | start =
  | source = vehicleitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Jack
item Jack
    {
{
        DisplayCategory = Tool,
    DisplayCategory = Tool,
        Weight = 1.5,
    Weight = 1.5,
        Type = Normal,
    Type = Normal,
        DisplayName = Jack,
    DisplayName = Jack,
        Icon = CarJack,
    Icon = CarJack,
        MechanicsItem = TRUE,
    MechanicsItem = TRUE,
        WorldStaticModel = CarJack,
    WorldStaticModel = CarJack,
    }
}
</pre>
  }}
}}


==See also==
==See also==

Revision as of 13:52, 31 January 2024

Jack
Jack Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Function
Remove tires, brakes, and suspension
Technical
Item ID
Base.Jack

A jack is a tool used in mechanics.

Usage

A jack is required to remove tires, brakes, and suspension from vehicles. It is used to hold up the vehicle, so other tools, such as a lug wrench and wrench can remove the parts.

The tire must be removed using a lug wrench before the brakes and suspension can be accessed with the wrench. The jack is never removed from the player's inventory during this process and instead, the vehicle is effectively "lowered" back to the ground once a part is removed.

The player will not be able to use the jack on a vehicle if they have not read the appropriate recipe magazine corresponding to the vehicle type.

Distribution

Buildings

Building Container Rolls Chance
All Crate 1 0.2
Fossoil Counter 4 0.8
Garage All 2 0.5
Gas Station Shelves 5 0.8
Counter 5 0.8
Mechanic Metal Locker 3 0.5
Metal Shelves 3 0.5
Shed Counter 1 0.5
Storage Unit All 3 0.5

Vehicles

Profession Container Rolls Chance
All Trunk 2 1.5

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\vehicleitems.txt

Retrieved: Build 41.78.16
item Jack
{
    DisplayCategory = Tool,
    Weight = 1.5,
    Type = Normal,
    DisplayName = Jack,
    Icon = CarJack,
    MechanicsItem = TRUE,
    WorldStaticModel = CarJack,
}

See also