Garry's Mod

Garry's Mod

Nadmod Prop Protection
129 Comments
Etbysnex 22 Mar @ 7:06am 
i can't delete this addon in some mode
Pelumo 64 17 Feb @ 1:44pm 
Yo, it might have totaled my save function, since all the props belong to the world, apparently.
the scrombler 13 Feb @ 3:17am 
fucked up my toolgun, can someone help me
.Den4thrius. 30 Nov, 2022 @ 5:34pm 
I'm having a recurring problem with the protection of the nadmod prop, when a prop damages the character sometimes it happens that the Spawn menu (Q or F1) simply stops working and I have to restart the game, can you help me?
party 18 Nov, 2022 @ 4:44am 
[Nadmod Prop Protection] Warning! A net message (tsayc) is already started! Discarding in favor of the new message! (nadmod_propowners)
1. SendPropOwners - lua/autorun/server/nadmod_pp.lua:84
2. unknown - lua/autorun/server/nadmod_pp.lua:112
The Doctor 19 Mar, 2022 @ 11:58am 
How do I protect spawn?
DAMAGEPLAN 31 Aug, 2021 @ 1:15pm 
can i claim doors on a map with this?
i am in your walls 8 Aug, 2021 @ 2:21am 
please run CPPI hooks (CPPI doc @ http://ulyssesmod.net/archive/CPPI_v1-1.pdf , II.e)
MeQQs 25 Dec, 2020 @ 12:17pm 
How to make auto cleanup work? No matter what I set up it doesn't work.
Florida East Coast #427 13 Dec, 2020 @ 7:37pm 
there's an autoclean timer that cleans up everyone's entities and constraints after a set time that they disconnect
LλMBDλ 11 Jul, 2020 @ 7:02pm 
What does it do to the props of players who disconnect?
Jagger 23 Jun, 2020 @ 4:49pm 
I also have an issue with the HUD, specifically the font used, which throws errors when looking at props, I'll put the issue and error message on github
camelCase 16 Apr, 2020 @ 2:32pm 
Does this work for restricting tools such as rope?
SammyT291 11 Mar, 2020 @ 2:07am 
@Canhead , Again; id like to help, but you answered none of my questions, nor have you posted any errors on the github, and as stated I cannot seem to replicate your issue..

-Post the error(s) on github https://github.com/Nebual/NadmodPP
-What OS are you on
-Try run with no workshop or legacy addons enabled
Herpes X 5 Mar, 2020 @ 3:23pm 
@Sammy there's multiple People with problem it says the hud is set to 0 in multiplayer but works in sp
SammyT291 5 Mar, 2020 @ 6:27am 
@Canhead, can you open an issue request on the github and give us the exact error your getting?
Im not having any issues with the overlay, nor does anyone else i play with.

Does it still break without any Folder/Workshop addons running?
What OS are you on?
Herpes X 4 Mar, 2020 @ 2:21pm 
OVERLAY DOESN'T WORK IT NEEDS FIXED

Nebual  [author] 4 Mar, 2020 @ 2:06am 
v1.5.1 update:
- Fixed clientside lua errors when opening spawnmenu with a bot on the server (thanks @sammyt291)
Brakeman Hornet 20 Feb, 2020 @ 5:40pm 
the nadmod_overlay wont work
kyaing goat 27 Dec, 2019 @ 12:17pm 
same issue. fix it please
Nebual  [author] 27 Oct, 2019 @ 1:48pm 
v1.5 update, brought to us by @thegrb93/Sparky!
- Add CPPI Clientside support, eg. for use in Starfall
- Optimized networking
Herpes X 12 Sep, 2019 @ 4:02pm 
the overlay doesnt show up on multiplayer servers with the mod
Bet-Trey 10 Jun, 2019 @ 8:11am 
the Client error multiple times and it makes me unable to access q menu and it stuck forever until I rejoin the server. As long as i don't go into Client in Nadmod prop protection I can normally acess q menu. The Error occured when I try to access q menu after the Client error, it gives me this error.


[ERROR] lua/autorun/client/cl_nadmodpp.lua:191: attempt to concatenate a nil value
1. ClientPanel - lua/autorun/client/cl_nadmodpp.lua:191
2. fn - lua/autorun/client/cl_nadmodpp.lua:203
3. Run - addons/ulib/lua/ulib/shared/hook.lua:109
4. Call - gamemodes/sandbox/gamemode/spawnmenu/spawnmenu.lua:222
5. unknown - gamemodes/base/gamemode/cl_spawnmenu.lua:56
6. unknown - lua/includes/modules/concommand.lua:54


[ERROR] lua/autorun/client/cl_nadmodpp.lua:157: attempt to concatenate a nil value
1. func - lua/autorun/client/cl_nadmodpp.lua:157
2. unknown - lua/includes/extensions/net.lua:32
Monaco 13 Jan, 2019 @ 1:27pm 
Can you add Entity Damage as an option for Admins?
Cougarmint 15 Jul, 2018 @ 4:31am 
I don't know if this is a common error with everyone else, but whenever press the Use key or touch anything with the Physgun when this is enabled, I get the following error in my console:

[ERROR] addons/nadmod prop protection/lua/autorun/server/nadmod_pp.lua:369: attempt to index a nil value
1. v - addons/nadmod prop protection/lua/autorun/server/nadmod_pp.lua:369
2. unknown - lua/includes/modules/hook.lua:84

I've checked for mod conflicts and it seems to be just this one.

(comment edit note: spelling corrections)
Tomoli75 28 Jun, 2018 @ 10:58pm 
This should have been in the vanilla game!
Sanders 7 Jun, 2018 @ 6:08pm 
this addon is good but the CPPIGetFriends part of this addon is trash it breaks damage core e2 functions when using it on an npc or a prop..................this is the full error: addons/wire/lua/entities/gmod_wire_expression2/core/e2lib.lua:708: attempt to call method 'CPPIGetFriends' (a nil value)
Sanders 2 May, 2018 @ 11:39am 
where is the black list on this addon? as there are models that should be spawnable but can't
happypug 10 Mar, 2018 @ 4:53pm 
help it's not showing up
Chainzprodigy 27 Feb, 2018 @ 2:20pm 
How would I go about assinging ownership to an entity that is spawned by another entity. I have a money entity that a printer prints out and I only want the owner of the printer to be able to pick up that money
GenStone 30 Jan, 2018 @ 2:57pm 
Hopefully we should see an option to disable prop protection on certain props. I have a prop-based claim flag that we change the color of to indicate ownership when we take a base over. Specifically, I want to be able to enable specific tools if I wanted to, like this prop can't be moved with the physgun, but it can be removed or modified with the tool gun, etc.
Nebual  [author] 4 Jan, 2018 @ 12:59am 
v1.4 Update:
- Cleaning up the map now restores ownership to the World
- Singleplayer now defaults to PP being off
- Admin menu can now be opened during high ping (useful for cleaning the source of the ping)
- Add nadmod_overlay convar (0 = off, 1 = owner info only, 2 = owner + model + entityID + class)

@Nightly: Get an admin mod. I have one linked in the description.
@sol: That has annoyed me in the past! I've rejiggered the cpanel so it remains visible if you've ever loaded it before.
@georgeravenholm!: Alright, disabled by default in Singleplayer
@[SMOL]SwerveSwerve: Alright, added nadmod_overlay convar
@FreezeBug: I think I need to keep a delay after map start (later than InitPostEntity) to catch _all_ maps' world ents; but I've added PostCleanupMap, thanks!
@Chillstice: I've documented my concommands, that one would be nadmod_cdp
Buttons 7 Nov, 2017 @ 7:58pm 
what do i do if it says im not a admin
ABTTEX 24 Aug, 2017 @ 2:44am 
How should I prevent players from moving N / A props
sol 26 Jul, 2017 @ 4:17pm 
it takes a while for the admin menu to load, and when someone spams often times you can't delete their stuff only because the menu won't load :\
Grey 24 Jun, 2017 @ 5:41pm 
Is there a way you can add allowing certain groups to be able to move props like an admin? cause there's no prop protection mod that lets operators from ulx move other peoples props without permission. operators technically are not admin so thats why im asking. also are you able to clean individual players props like simple prop protection? thanks your mod is great.
bveezey 13 May, 2017 @ 7:06pm 
it would be nice if you disabled it for singleplayer as its pretty annoying installing a server collection then going in single player to be locked out of world props
Colton 13 May, 2017 @ 12:48pm 
is there a way to turn off the overlay that shows owner id etc.
FreezeBug 11 Feb, 2017 @ 2:12pm 
Hey Nebual,

Was hoping that you could change a few things regarding this for better support with cleanups.

At line 327 of nadmod_pp.lua you're calling the function that locates world props and sets their owner to "World". However, the way it's done isn't exactly reliable.

"if CurTime() < 5 then timer.Create("NADMOD.PPFindWorldProps",7,1,NADMOD.WorldOwner) end"

Can you replace it with this?

hook.Add("PostCleanupMap","NADMOD.PPFindWorldProps",NADMOD.WorldOwner)
hook.Add("InitPostEntity","NADMOD.PPFindWorldProps",NADMOD.WorldOwner)

Your current implementation is causing world props to be unowned on cleanup :p
Chillstice 16 Dec, 2016 @ 2:38pm 
Also are you planning to add a switch that prevents world props from being picked up by admins when the "admins can touch anything" setting is turned on?
Chillstice 15 Dec, 2016 @ 10:41pm 
Simple Prop Protection had a command that admins could run from the console to clean up disconnected player's props (spp_cdp) Is there a command that has a similar effect with Nadmod?
Nebual  [author] 4 Oct, 2016 @ 2:09am 
v1.3.1 Tiny update:

* Protection is now enabled by default
* Improved support for E2 protection checks

Everything still seems to work in my testing.
@Lyzz Admins show up as "friends" that you can't untick, so you know who's capable of touching your stuff.
Corn Bread 22 Aug, 2016 @ 2:03pm 
This allows players to own world entities like buttons and doors.. and when auto clean runs the owned entities get deleted
Odey555 21 Aug, 2016 @ 8:37am 
Doesn't work
looter 20 Jul, 2016 @ 9:35pm 
this seems to have bugs with permissions and friends now
Funion 16 Jul, 2016 @ 10:20am 
Oh sorry, i wasnt reading :PPPP. it clearly says "Note: Initially Protection is disabled serverwide, just tick on the Main Power Switch in the Admin CPanel and hit Apply."
Funion 15 Jul, 2016 @ 4:10pm 
Hey prop protection is broken, Can you update it please?
QuasarBarkas 31 May, 2016 @ 4:48am 
somebody stole my contraption even though he wasn't on my friends list.
Lyzz 30 May, 2016 @ 10:45am 
my experience is bad too:
- goes on server
- all people are friends
- cant delete them
- gg invertet prop protection
Scott 28 Mar, 2016 @ 3:37am 
it keeps giving me a error wen i look at a prop it spamming my console with a error oh chatlog. help please