I need two hooks for garry's mod. I need to disable spawn props in some DarkRP professions. And I need to disablebutton presses in some professions.Someone can help my server, I'm not good at lua, but I know python well.
Idk if darkrp uses the sandbox one, but heres the spawn one sort of, i also dont know the darkrp code to check jobs, so replace "Getdarkrpjob" with that
hook.Add("PlayerSpawnSENT", "SandboxDisabler", function(ply, class) if ply:Getdarkrpjob() == "whatiwannaforbid" then return false end end)