Advertisement
PeterBadoingy

Custom Territories

Dec 2nd, 2023 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. Custom Territories/ Area Information.
  2.  
  3. How to get coordinates:
  4. While in game with LSR loaded press F11 to enter the Debug Menu and select the Location Logging Menu and select "Log Game Location"
  5. which records your current coordinates and heading to a file within LosSantosRED folder named "StoredLocations.txt"
  6.  
  7. StoredLocations.txt Example Entry:
  8.  
  9. new GameLocation(new Vector3(4.840425f, -1217.857f, 29.32896f), 270.6059f,new Vector3(4.840425f, -1217.857f, 29.32896f), 270.6059f,
  10. LocationType.LocationType ped1, "Name ped1", "Name ped1"),
  11. ---------------------------------------------------------------------------------------------------------------------------------------
  12. X Y Z H
  13. Looking at the following: (4.840425f, -1217.857f, 29.32896f), 270.6059f
  14. ---------------------------------------------------------------------------------------------------------------------------------------
  15. X = 4.840425 <X>4.840425</X>
  16. Y = -1217.857 <Y>-1217.857</Y>
  17.  
  18.  
  19.  
  20.  
  21.  
  22. Zones.xml:
  23.  
  24. <Zone>
  25. <InternalGameName>MyGangTerritory</InternalGameName> <-- Name Of Territory -->
  26. <DisplayName>Tongva Hills</DisplayName> <-- Display Name -->
  27. <CountyID>LosSantosCounty</CountyID>
  28. <State>San Andreas</State>
  29. <IsRestrictedDuringWanted>false</IsRestrictedDuringWanted>
  30. <IsSpecificLocation>true</IsSpecificLocation>
  31. <Boundaries>
  32. <Vector2>
  33. <X>-2491.46</X>
  34. <Y>1955.868</Y>
  35. </Vector2>
  36. <Vector2>
  37. <X>-2648.825</X>
  38. <Y>1953.005</Y>
  39. </Vector2>
  40. <Vector2>
  41. <X>-2648.722</X>
  42. <Y>1836.511</Y>
  43. </Vector2>
  44. <Vector2>
  45. <X>-2524.957</X>
  46. <Y>1863.897</Y>
  47. </Vector2>
  48. </Boundaries>
  49. <Economy>Middle</Economy>
  50. <Type>Rural</Type>
  51. <DealerMenuContainerID>HeroinAreaDrugDealerMenuGroupID</DealerMenuContainerID>
  52. <CustomerMenuContainerID>HeroinAreaDrugCustomerMenuGroupID</CustomerMenuContainerID>
  53. </Zone>
  54.  
  55.  
  56. <-- InternalGameName = Name of Custom Zone -->
  57. <-- DisplayName = is what is shown in-game. for example, if you use Strawberry and then go through Strawberry ingame it will display "Strawberry/LSPD/GangName" -->
  58. <-- More CustomerMenuContainerID & DealerMenuContainerID MenuGroupIDs can be found in ShopMenus.xml -->
  59. <-- Use Find "AreaDrug" to quickly find other MenuGroupIDs in ShopMenus.xml -->
  60.  
  61. --------------------------------------------------------------------
  62.  
  63. Boundaries
  64.  
  65.  
  66. <Boundaries>
  67. <Vector2>
  68. <X>-2491.46</X>
  69. <Y>1955.868</Y>
  70. </Vector2>
  71. <Vector2>
  72. <X>-2648.825</X>
  73. <Y>1953.005</Y>
  74. </Vector2>
  75. <Vector2>
  76. <X>-2648.722</X>
  77. <Y>1836.511</Y>
  78. </Vector2>
  79. <Vector2>
  80. <X>-2524.957</X>
  81. <Y>1863.897</Y>
  82. </Vector2>
  83. </Boundaries>
  84.  
  85. <-- This is 4 coordinate points set around Devon Weston Mansion in Tongva Hills. -->
  86. <-- If you want your gang members to spawn ambiently in the area it's best to include roads/pavement in your zone. -->
  87. <-- You can use as many coordinate points as you need to make the area as big or small and detailed as you want. -->
  88.  
  89.  
  90.  
  91. ----------------------------------------------------------------------------------------
  92. Gang Territories.xml:
  93.  
  94.  
  95. <ZoneJurisdiction>
  96. <ZoneInternalGameName>MyGangTerritory</ZoneInternalGameName> <-- Name Of Territory -->
  97. <AgencyInitials>AMBIENT_GANG_MyGang</AgencyInitials> <-- Id Of your Gang -->
  98. <Priority>0</Priority>
  99. <AmbientSpawnChance>100</AmbientSpawnChance>
  100. <WantedSpawnChance>100</WantedSpawnChance>
  101. <CanSpawnPedestrianOfficers>false</CanSpawnPedestrianOfficers>
  102. </ZoneJurisdiction>
  103.  
  104. ------------------------------------------------------------------------------------------
  105. If you want Police
  106.  
  107. Zone Jurisdictions.xml:
  108.  
  109. <ZoneJurisdiction>
  110. <ZoneInternalGameName>MyGangTerritory</ZoneInternalGameName> <-- Name Of Territory -->
  111. <AgencyID>LSMC</AgencyID> <-- Police IDs for area -->
  112. <Priority>0</Priority>
  113. <AmbientSpawnChance>100</AmbientSpawnChance>
  114. <WantedSpawnChance>100</WantedSpawnChance>
  115. <CanSpawnPedestrianOfficers>false</CanSpawnPedestrianOfficers>
  116. </ZoneJurisdiction>
  117.  
  118. <--*Note* You can create multiple ZoneJurisdiction entries for different Police IDs for all of the Police that would typically roam the area -->
  119.  
  120. <ZoneJurisdiction>
  121. <ZoneInternalGameName>MyGangTerritory</ZoneInternalGameName> <-- Name Of Territory -->
  122. <AgencyID>LSMC</AgencyID> <-- Police IDs for area -->
  123. <Priority>0</Priority>
  124. <AmbientSpawnChance>100</AmbientSpawnChance>
  125. <WantedSpawnChance>100</WantedSpawnChance>
  126. <CanSpawnPedestrianOfficers>false</CanSpawnPedestrianOfficers>
  127. </ZoneJurisdiction>
  128. <ZoneJurisdiction>
  129. <ZoneInternalGameName>MyGangTerritory</ZoneInternalGameName> <-- Name Of Territory -->
  130. <AgencyID>LSPD</AgencyID> <-- Police IDs for area -->
  131. <Priority>0</Priority>
  132. <AmbientSpawnChance>100</AmbientSpawnChance>
  133. <WantedSpawnChance>100</WantedSpawnChance>
  134. <CanSpawnPedestrianOfficers>false</CanSpawnPedestrianOfficers>
  135. </ZoneJurisdiction>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement