Restricting prop spawning to only specific job(s)
Create the file: /garrysmod/addons/restrict_prop_spawning/lua/autorun/restrict_prop_spawning.lua
Paste the following code:
restrict_prop_spawning.lua
Works with any DarkRP gamemode.
Featured
More games
Lua script to restrict prop spawning to only specific DarkRP jobs on your GMod server.
Create the file: /garrysmod/addons/restrict_prop_spawning/lua/autorun/restrict_prop_spawning.lua
Paste the following code:
/* Allowed jobs can spawn props, all others cannot */
local propSpawningJobs = {
[TEAM_BUILDER] = true,
[TEAM_MOBBOSS] = true,
[TEAM_HOBO] = true,
}
hook.Add("PlayerSpawnProp", "JobSpawnPropRestrict", function(ply)
if not propSpawningJobs[ply:Team()] then return false end
end)Works with any DarkRP gamemode.
Was this article helpful?
Thanks for the feedback!

Deploy a high-performance GMod server on overclocked hardware in seconds, with full file access, custom settings, and no player slot limits.
Launch My GMod Server