622 ratings
Code Lock
Type: Mod
File Size
9.525 MB
Feb 5 @ 1:23pm
Jul 29 @ 10:20pm
36 Change Notes ( view )

Subscribe to download
Code Lock

In 1 collection by Room Service
GangstaDayZ Server Mods
22 items
Thank You for 400k Subscribers!
Thank you for 400,000 subscribers. I never thought I would get five thousand, let alone four hundred thousand! I will be releasing a recode within the next week or two to hopefully fix any current issues with the mod as well as add some QOL updates! I will release more information as I get closer to finishing it!

If you cannot re-attach the lock after removing it, completely remove the fence and build a new one!
Server Owners: If you want to enable the ability to add locks to tents, add <"m_CanAttachtoTent": 1> ( remove the carrots ) to your CodeLockConfig.json! This feature is disabled by default.

Don't advertise your server on my mod. There's places where it's appropriate, and my mod page isn't it.
Consider joining my DayZ server! Information posted below.

This is a completely re-vamped, UI-based, Combination Lock.
When placing the lock onto a fence, a UI will appear allowing you to set a code for that fence, same goes for unlocking, removing the hassle of dialing digits over and over again.
Enjoy the Arma 3 days of UI based locks.

Note: if you drag the lock onto a gate, the UI will not immediately appear. You must then choose "Set Pin" on the gate.

Questions? join my discord to ask questions, share feedback, or report bugs! Everyone is welcome. ( Invite posted below )


Installation Instruction:

- Copy the mod to your server directory
- Copy key from mod folder to Keys folder
- Copy snippet from types.xml to your current types.xml


Thanks to WarDog for the new UI! :
Thanks to OP for implementing the custom model!:
Model used for Lock:


Configuration Instruction:

- Locate the mod config file in your servers profile folder ( Name is CodeLockConfig.json )
If this file does not exist, run the server, it'll generate itself.
- Change the m_CanCutLock boolean to either a 0 or a 1.
- Change the m_CanAttachtoTent boolean to either a 0 or a 1.
1 - true, enables the ability to cut off the lock.
0 - false, disables the ability to cut off the lock.
Anything other than a 1 or 0 will break the config file and potentially break the mod and the locks in the server!


Donation Link:
Not asking anyone to donate, but here's the link if you're interested.



- Code can be any string, including letters and symbols.
- You must have RPCFramework installed on your server for this mod to work.
- This will not break the current combination lock in the game, nor wipe the locks.


Future Intentions:
- Add compatibility for BaseBuilding+ Doors through another mod.
- Admin privileges to Open/Change combination.
- Have codelocks work on all tents.


Current Issues:
- CodeLocks don't like being reattached to fences randomly. Rebuild the fence. Still looking into the isuse
- Animation state doesn't update until a pin is set on the codelock



Use a Collection if you want to include this mod on your server for your users.

Monetization while using this mod is approved.
Copyright 2019 Room Service.

This item is not authorized (strictly forbidden) for any of these conditions:
- posting on Steam, except under the Steam account theroomservice.
- hosting on any download server other than Code Lock's current workshop download.
- hosting on any launcher for distribution other than Code Lock's current workshop download.
- to be packaged in any form other than Code Lock's current workshop download.
- to create derivative works.
Popular Discussions View All (6)
Sep 2 @ 7:21pm
PINNED: New UI - Feeback
Sep 25 @ 9:17pm
Aug 26 @ 4:52am
Codelook on Normal Doors?
< >
REN 5 hours ago 
Hi, my teammate can't use the lock, what should I do?
bigdaddy Oct 12 @ 2:33pm 
Codes no longer work on 4 squad tents. None of the suggested "reset codes" work either.
Private Virgil Ginger Jr. Oct 12 @ 11:49am 
Thank you for your work.
Room Service  [author] Oct 12 @ 9:42am 
Yes, it's currently a bug with the UI. It will be fixed when I release the recode. Currently there's no way to fix it.
Private Virgil Ginger Jr. Oct 12 @ 8:19am 
Same, my code lock appears black and red in color. Is this a glitch part or some one hacked? I can't seem to open it.
vip.juris Oct 12 @ 12:22am 
Help, I can’t open the combination lock. After pressing F, the open icon disappears
Room Service  [author] Oct 11 @ 8:09pm 
No. There's no way to fix it in the current version of the mod. I'm very sorry about that but the issue will be fixed in good time. I'm pretty busy over the next couple of days but I'll try and put consistent work into finishing the recode.
.:MSK:. ^7MaFu Oct 11 @ 6:05pm 
any ways to solve this issue? I have try several ways and notting.
vip.juris Oct 11 @ 11:34am 
нажимаю кнопку F и ничего не происходит ((( после этого вообще ничего открыть не могу пока не перезайду
Room Service  [author] Oct 10 @ 9:12pm 
I'll have to do some extensive testing before releasing to 400k people and it'll break any mod that uses this mod or modifies it in any way.