Build Mode: Cant hurt other players as well?

Anyone know how to make it where someone runs a ulx command aka my buildmode and the ycant hurt other players either? I looked at the wiki but couldnt find anything.

You can try using

GM:ScalePlayerDamage to scale the damage to 0 if the attacker is in buildmode. Setting them to build mode would be as easy as a ply.BuildMode or networked bool if you want to display anything special clientside

isnt there a command for that?