Project Zomboid

Project Zomboid

Not enough ratings
Container Lockout API
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.632 MB
31 Dec, 2022 @ 12:29am
3 Feb, 2023 @ 7:42am
5 Change Notes ( view )

Subscribe to download
Container Lockout API

Description
API for locking containers with set conditions.

[ko-fi.com]


How To Use: ---Define local copy of `containerLockout` using require local containerLockout = require "containerLockout-shared" local function func(worldObject, player) --add conditions here, for example: if player:getModData().blockView == true then return false end end containerLockout.addFunction(func) --Additionally: ---default texture: "media/ui/lock.png" containerLockout.setTexture(texturePath) --Call this anywhere after using require


Copyright 2023 Chuckleberry Finn. This item is not authorized for posting on Steam, except under the Steam account named Chuckleberry Finn.

Workshop ID: 2909984178
Mod ID: containerLockout
9 Comments
Chuckleberry Finn  [author] 27 Jun, 2024 @ 7:50am 
It's for modders.
Eismedit 26 Jun, 2024 @ 9:46pm 
Зачем он нужен?:steamthis:
»MadMaN‼ 28 Mar, 2023 @ 6:54pm 
just wow, thank you!
Daevinski 22 Mar, 2023 @ 6:00pm 
I guess I should've commented in the other mod... my mistake. But anyway, that's it... I hope you consider making this adjustment, the only thing missing on really great mod. :cherrypie::spiffo:
Chuckleberry Finn  [author] 22 Mar, 2023 @ 5:57pm 
Ah I see, sorry for the confusion. Yes, that mod would be the one handling those features.
Daevinski 22 Mar, 2023 @ 5:34pm 
I installed this mod and the other Extra Server Settings and everything is working just like "Worse Searching": you can only see the items in a container after searching it.

This mechanic is amazing, except for what I pointed before. Maybe is something that can be done through Extra Server Settings, then?
Chuckleberry Finn  [author] 22 Mar, 2023 @ 5:24pm 
I don't believe this mod does what you think it does. This is solely an API for other modders to set conditions for containers to be locked in a way that doesn't conflict with each other.
Daevinski 22 Mar, 2023 @ 3:40pm 
Thanks for this mod! I've been looking for an alternative to "Worse Searching" for a long time now and this is perfect for my list.

Just a thing: it would be possible to make the containers searchable by just clicking the Question Mark Icon in the top inventory window instead of having to Right Click in the tile and then selecting "Search: Container"? It would make things much more practical, especially while using "Left Click Redux", since is not possible to click to interact with not-searched containers.

The lack of such option can be particular annoying while playing with "Trash and Corpses Everywhere", which makes every pile of trash a container, or with Custom Maps with Custom Tiles, 'cause some container tiles are not actually interactive... so you just end up right clicking everywhere trying to figure out which containers are "real" or which ones were not interacted with yet and this interrupts the flow and even the immersion. :dos2skull:
Glytch3r 31 Dec, 2022 @ 12:52am 
Thank you! :)