Name was created as a simple way to differentiate between each type of lawman

First you need metapeds.ymt file

Then search for the name of the entry inside

The name of the ped to replace with Deputy
S_M_M_AmbientlawRural_01 S_M_M_TumDeputies_01 A_M_M_ARMDEPUTYRESIDENT_01 A_M_M_ASBDEPUTYRESIDENT_01 A_M_M_STRDEPUTYRESIDENT_01 A_M_M_RHDDEPUTYRESIDENT_01 A_M_M_VALDEPUTYRESIDENT_01 S_M_M_VALDEPUTY_01

The name of the ped to replace with Police Officer
S_M_M_DispatchPolice_01 S_M_M_AmbientSDPolice_01 S_M_M_AmbientBlWPolice_01

The name of the ped to replace with Police Sergeant
S_M_M_DispatchLeaderPolice_01

The name of the ped to replace with Ranger
S_M_M_DispatchLawRural_01

The name of the ped to replace with Ranger Captain
S_M_M_DispatchLeaderPolice_01

The name of the ped to replace with Deputy Marshal
S_M_M_MARSHALLSRURAL_01

The name of the ped to replace with Pinkerton Detective
S_M_M_PINLAW_01

Then change the <UndiscoveredName> and <DiscoverableName> in the entry

Typical example:

	before
      <DiscoverableName />
      <UndiscoveredName>0xD6A21463</UndiscoveredName>

	after
			#Take Deputy as an example
      <DiscoverableName>Law_Peds_Deputy</DiscoverableName>
      <UndiscoveredName>Law_Peds_Deputy</UndiscoveredName>

If you can't find these two lines only find some hashes
Then you should change the <0x72595C32> and <0xC06661DE>

<0x72595C32> = <DiscoverableName>
<0xC06661DE> = <UndiscoveredName>

Law_Peds_Deputy = Deputy
Law_Peds_Police = Police Officer
Law_Peds_Police_Leader = Police Sergeant
Law_Peds_Rural = Ranger
Law_Peds_Rural_Leader = Ranger Captain
Law_Peds_Marshal_Deputy = Deputy Marshal
0x70C2B6E6 = Pinkerton Detective
