DarkRP help

How can I make it to where an admin that is inside noclip can not be arrested?

Not sure how arresting works in DarkRP, but you can find if a player is noclipped using this:


function NoArrest(ply)
	if (ply:GetMoveType() == MOVETYPE_NOCLIP) then
           -- return false on arrest attempt
	end
end
hook.Add("PlayerNoClip", "NoArrest", NoArrest)