Permalink
Browse files

Disable properties for non-sandbox derived GMs

Disable properties for all non-sandbox derived gamemodes.
  • Loading branch information...
1 parent bdea6ff commit 9078a4384dc257af174cd017af09582ffd369bd2 @robotboy655 robotboy655 committed Jan 12, 2015
Showing with 7 additions and 0 deletions.
  1. +7 −0 garrysmod/gamemodes/base/gamemode/shared.lua
@@ -297,3 +297,10 @@ function GM:OnViewModelChanged( vm, old, new )
end
end
+
+--[[---------------------------------------------------------
+ Disable properties serverside for all non-sandbox derived gamemodes.
+-----------------------------------------------------------]]
+function GM:CanProperty( pl, property, ent )
+ return false
+end

0 comments on commit 9078a43

Please sign in to comment.