Project Zomboid

Project Zomboid

40 ratings
Key From Glove Box
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
467.165 KB
3 Apr @ 9:19am
7 Apr @ 6:09am
2 Change Notes ( view )

Subscribe to download
Key From Glove Box

Description
Extends the vehicle ignition logic to also recognize keys stored in a vehicle's glove box.

In the vanilla game, a vehicle's assigned key must be present in the player's inventory to insert it into the ignition. This mod extends that functionality by also checking the vehicle's glove box for the matching key. If the key is removed from the ignition and was originally taken from the glove box, it will be returned there.

Solo & Dedicated Servers:
This mod functions in both solo and dedicated server environments.

Configuration:
- Sandbox Options: Configure server-level settings.
- Mod Options: Configure player-level settings.
Sandbox Options can be set to Player Choice to defer to the individual player's Mod Options.

Compatibility:
All vanilla logic used in this mod is wrapped and invoked appropriately. Mods that directly replace the vanilla ignition logic may be incompatible. Mods that wrap and invoke the vanilla logic should work fine, although load order may affect compatibility. Other mods are generally unaffected.

Known Issues:
- Currently, this mod only supports the mouse-click interaction with the ignition. The vanilla behavior of automatically inserting the key when pressing Forward is not supported. This means that while you can click to insert a key from the glove box, pressing Forward will only work with keys in your inventory. This will be fixed in a future update.

This is the first mod I've ever created. It is not quite complete, so please keep that in mind.

Workshop ID: 3457277411
Mod ID: KeyFromGloveBox
Popular Discussions View All (1)
1
26 Jun @ 4:30pm
QoL Tag Dilemma
AgentTekk
6 Comments
Bunnies&Cherris 26 Jun @ 7:48pm 
It definitely was not related to your mod! Thanks
AgentTekk  [author] 15 Jun @ 9:24pm 
@Bunnies&Cherris In my testing (solo and MP), I did not come across any breaking of the vanilla logic. This mod simply calls the vanilla logic without modifying/replacing it. Please try in a clean game (no other mods) to verify. The only thing that might make it seem like it "doesn't work" is the fact that this mod does not yet respond to hitting the forward (W) key to insert the key from the glove box.
Bunnies&Cherris 8 Jun @ 9:23pm 
There would be no reason this mod should be able to break and make the ignition act like you do not have the key for it, despite you having a key, correct? Just trying to troubleshoot this weird key issue.
AgentTekk  [author] 28 May @ 1:22am 
@Kable I'm sure that's possible. However, it would be more appropriate for it to be its own, separate, mod. This mod simply enables the use of a vehicle key from the vanilla glove box container.
Kable 27 May @ 2:59am 
and of course the chance a key can spawn in it.
Kable 27 May @ 2:58am 
Is there a way to create a sun visor slot container in vehicles, just like the movies :D
Could spawn fliers ,credit cards, business cards, photos?