@nativewrappers/redm-codegen 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/classes/AnimScene.d.ts +126 -126
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +184 -184
  4. package/dist/classes/BaseModel.d.ts +17 -17
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +25 -25
  7. package/dist/classes/BaseTask.d.ts +12 -12
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +14 -14
  10. package/dist/classes/Cam.d.ts +94 -94
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +126 -126
  13. package/dist/classes/Entity.d.ts +471 -471
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +672 -672
  16. package/dist/classes/PedTask.d.ts +155 -155
  17. package/dist/classes/PedTask.d.ts.map +1 -1
  18. package/dist/classes/PedTask.js +204 -204
  19. package/dist/classes/PersChar.d.ts +9 -9
  20. package/dist/classes/PersChar.d.ts.map +1 -1
  21. package/dist/classes/PersChar.js +21 -21
  22. package/dist/classes/Pickup.d.ts +5 -5
  23. package/dist/classes/Pickup.d.ts.map +1 -1
  24. package/dist/classes/Pickup.js +9 -9
  25. package/dist/classes/Player.d.ts +687 -687
  26. package/dist/classes/Player.d.ts.map +1 -1
  27. package/dist/classes/Player.js +1013 -1013
  28. package/dist/classes/Prop.d.ts +87 -87
  29. package/dist/classes/Prop.d.ts.map +1 -1
  30. package/dist/classes/Prop.js +121 -121
  31. package/dist/classes/PropSet.d.ts +4 -4
  32. package/dist/classes/PropSet.d.ts.map +1 -1
  33. package/dist/classes/PropSet.js +6 -6
  34. package/dist/classes/VehicleTask.d.ts +17 -17
  35. package/dist/classes/VehicleTask.d.ts.map +1 -1
  36. package/dist/classes/VehicleTask.js +21 -21
  37. package/dist/classes/Weapon.d.ts +306 -306
  38. package/dist/classes/Weapon.d.ts.map +1 -1
  39. package/dist/classes/Weapon.js +411 -411
  40. package/dist/namespaces/Animscene.d.ts +59 -59
  41. package/dist/namespaces/Animscene.d.ts.map +1 -1
  42. package/dist/namespaces/Animscene.js +77 -77
  43. package/dist/namespaces/Audio.d.ts +569 -569
  44. package/dist/namespaces/Audio.d.ts.map +1 -1
  45. package/dist/namespaces/Audio.js +728 -728
  46. package/dist/namespaces/Bounty.d.ts +70 -70
  47. package/dist/namespaces/Bounty.d.ts.map +1 -1
  48. package/dist/namespaces/Bounty.js +115 -115
  49. package/dist/namespaces/Brain.d.ts +15 -15
  50. package/dist/namespaces/Brain.d.ts.map +1 -1
  51. package/dist/namespaces/Brain.js +20 -20
  52. package/dist/namespaces/CamStatics.d.ts +399 -399
  53. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  54. package/dist/namespaces/CamStatics.js +574 -574
  55. package/dist/namespaces/Clock.d.ts +51 -51
  56. package/dist/namespaces/Clock.d.ts.map +1 -1
  57. package/dist/namespaces/Clock.js +73 -73
  58. package/dist/namespaces/Collection.d.ts +76 -76
  59. package/dist/namespaces/Collection.d.ts.map +1 -1
  60. package/dist/namespaces/Collection.js +108 -108
  61. package/dist/namespaces/Companion.d.ts +22 -22
  62. package/dist/namespaces/Companion.d.ts.map +1 -1
  63. package/dist/namespaces/Companion.js +30 -30
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Crew.d.ts +9 -9
  71. package/dist/namespaces/Crew.d.ts.map +1 -1
  72. package/dist/namespaces/Crew.js +14 -14
  73. package/dist/namespaces/Databinding.d.ts +177 -177
  74. package/dist/namespaces/Databinding.d.ts.map +1 -1
  75. package/dist/namespaces/Databinding.js +271 -271
  76. package/dist/namespaces/Dlc.d.ts +5 -5
  77. package/dist/namespaces/Dlc.d.ts.map +1 -1
  78. package/dist/namespaces/Dlc.js +9 -9
  79. package/dist/namespaces/EntityStatics.d.ts +193 -193
  80. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  81. package/dist/namespaces/EntityStatics.js +263 -263
  82. package/dist/namespaces/Fire.d.ts +7 -7
  83. package/dist/namespaces/Fire.d.ts.map +1 -1
  84. package/dist/namespaces/Fire.js +9 -9
  85. package/dist/namespaces/Graphics.d.ts +820 -820
  86. package/dist/namespaces/Graphics.d.ts.map +1 -1
  87. package/dist/namespaces/Graphics.js +1118 -1118
  88. package/dist/namespaces/Hud.d.ts +494 -494
  89. package/dist/namespaces/Hud.d.ts.map +1 -1
  90. package/dist/namespaces/Hud.js +789 -789
  91. package/dist/namespaces/Inventory.d.ts +180 -180
  92. package/dist/namespaces/Inventory.d.ts.map +1 -1
  93. package/dist/namespaces/Inventory.js +239 -239
  94. package/dist/namespaces/Itemdatabase.d.ts +78 -78
  95. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  96. package/dist/namespaces/Itemdatabase.js +106 -106
  97. package/dist/namespaces/Map.d.ts +156 -156
  98. package/dist/namespaces/Map.d.ts.map +1 -1
  99. package/dist/namespaces/Map.js +207 -207
  100. package/dist/namespaces/Minigame.d.ts +78 -78
  101. package/dist/namespaces/Minigame.d.ts.map +1 -1
  102. package/dist/namespaces/Minigame.js +116 -116
  103. package/dist/namespaces/Missiondata.d.ts +15 -15
  104. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  105. package/dist/namespaces/Missiondata.js +23 -23
  106. package/dist/namespaces/Network.d.ts +636 -636
  107. package/dist/namespaces/Network.d.ts.map +1 -1
  108. package/dist/namespaces/Network.js +915 -915
  109. package/dist/namespaces/Object.d.ts +121 -121
  110. package/dist/namespaces/Object.d.ts.map +1 -1
  111. package/dist/namespaces/Object.js +162 -162
  112. package/dist/namespaces/Pad.d.ts +94 -94
  113. package/dist/namespaces/Pad.d.ts.map +1 -1
  114. package/dist/namespaces/Pad.js +127 -127
  115. package/dist/namespaces/Perschar.d.ts +44 -44
  116. package/dist/namespaces/Perschar.d.ts.map +1 -1
  117. package/dist/namespaces/Perschar.js +68 -68
  118. package/dist/namespaces/Physics.d.ts +158 -158
  119. package/dist/namespaces/Physics.d.ts.map +1 -1
  120. package/dist/namespaces/Physics.js +207 -207
  121. package/dist/namespaces/PlayerStatics.d.ts +127 -127
  122. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  123. package/dist/namespaces/PlayerStatics.js +177 -177
  124. package/dist/namespaces/Population.d.ts +75 -75
  125. package/dist/namespaces/Population.d.ts.map +1 -1
  126. package/dist/namespaces/Population.js +101 -101
  127. package/dist/namespaces/Posse.d.ts +38 -38
  128. package/dist/namespaces/Posse.d.ts.map +1 -1
  129. package/dist/namespaces/Posse.js +62 -62
  130. package/dist/namespaces/Propset.d.ts +30 -30
  131. package/dist/namespaces/Propset.d.ts.map +1 -1
  132. package/dist/namespaces/Propset.js +38 -38
  133. package/dist/namespaces/Shapetest.d.ts +11 -11
  134. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  135. package/dist/namespaces/Shapetest.js +13 -13
  136. package/dist/namespaces/Stats.d.ts +88 -88
  137. package/dist/namespaces/Stats.d.ts.map +1 -1
  138. package/dist/namespaces/Stats.js +123 -123
  139. package/dist/namespaces/Streaming.d.ts +58 -58
  140. package/dist/namespaces/Streaming.d.ts.map +1 -1
  141. package/dist/namespaces/Streaming.js +92 -92
  142. package/dist/namespaces/Task.d.ts +62 -62
  143. package/dist/namespaces/Task.d.ts.map +1 -1
  144. package/dist/namespaces/Task.js +90 -90
  145. package/dist/namespaces/Telemetry.d.ts +172 -172
  146. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  147. package/dist/namespaces/Telemetry.js +240 -240
  148. package/dist/namespaces/Uifeed.d.ts +15 -15
  149. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  150. package/dist/namespaces/Uifeed.js +24 -24
  151. package/dist/namespaces/Voice.d.ts +38 -38
  152. package/dist/namespaces/Voice.d.ts.map +1 -1
  153. package/dist/namespaces/Voice.js +56 -56
  154. package/dist/namespaces/Water.d.ts +27 -27
  155. package/dist/namespaces/Water.d.ts.map +1 -1
  156. package/dist/namespaces/Water.js +41 -41
  157. package/dist/namespaces/WeaponStatics.d.ts +250 -250
  158. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  159. package/dist/namespaces/WeaponStatics.js +346 -346
  160. package/package.json +1 -1
  161. package/src/classes/AnimScene.ts +199 -199
  162. package/src/classes/BaseModel.ts +29 -29
  163. package/src/classes/BaseTask.ts +15 -15
  164. package/src/classes/Cam.ts +135 -135
  165. package/src/classes/Entity.ts +687 -687
  166. package/src/classes/PedTask.ts +223 -223
  167. package/src/classes/PersChar.ts +24 -24
  168. package/src/classes/Pickup.ts +10 -10
  169. package/src/classes/Player.ts +1024 -1024
  170. package/src/classes/Prop.ts +136 -136
  171. package/src/classes/PropSet.ts +7 -7
  172. package/src/classes/VehicleTask.ts +23 -23
  173. package/src/classes/Weapon.ts +429 -429
  174. package/src/namespaces/Animscene.ts +86 -86
  175. package/src/namespaces/Audio.ts +804 -804
  176. package/src/namespaces/Bounty.ts +131 -131
  177. package/src/namespaces/Brain.ts +22 -22
  178. package/src/namespaces/CamStatics.ts +599 -599
  179. package/src/namespaces/Clock.ts +82 -82
  180. package/src/namespaces/Collection.ts +109 -109
  181. package/src/namespaces/Companion.ts +34 -34
  182. package/src/namespaces/Compendium.ts +59 -59
  183. package/src/namespaces/Crashlog.ts +16 -16
  184. package/src/namespaces/Crew.ts +16 -16
  185. package/src/namespaces/Databinding.ts +286 -286
  186. package/src/namespaces/Dlc.ts +9 -9
  187. package/src/namespaces/EntityStatics.ts +279 -279
  188. package/src/namespaces/Fire.ts +10 -10
  189. package/src/namespaces/Graphics.ts +1196 -1196
  190. package/src/namespaces/Hud.ts +799 -799
  191. package/src/namespaces/Inventory.ts +245 -245
  192. package/src/namespaces/Itemdatabase.ts +118 -118
  193. package/src/namespaces/Map.ts +215 -215
  194. package/src/namespaces/Minigame.ts +132 -132
  195. package/src/namespaces/Missiondata.ts +27 -27
  196. package/src/namespaces/Network.ts +951 -951
  197. package/src/namespaces/Object.ts +171 -171
  198. package/src/namespaces/Pad.ts +127 -127
  199. package/src/namespaces/Perschar.ts +72 -72
  200. package/src/namespaces/Physics.ts +231 -231
  201. package/src/namespaces/PlayerStatics.ts +202 -202
  202. package/src/namespaces/Population.ts +114 -114
  203. package/src/namespaces/Posse.ts +62 -62
  204. package/src/namespaces/Propset.ts +42 -42
  205. package/src/namespaces/Shapetest.ts +14 -14
  206. package/src/namespaces/Stats.ts +139 -139
  207. package/src/namespaces/Streaming.ts +104 -104
  208. package/src/namespaces/Task.ts +100 -100
  209. package/src/namespaces/Telemetry.ts +265 -265
  210. package/src/namespaces/Uifeed.ts +27 -27
  211. package/src/namespaces/Voice.ts +65 -65
  212. package/src/namespaces/Water.ts +47 -47
  213. package/src/namespaces/WeaponStatics.ts +365 -365
@@ -2,128 +2,207 @@ import { Vector3 } from '../types/Vector3';
2
2
  import { inv, rai, rav, pvi, pvf, pvv, _h, f } from '../types/NativeAliases';
3
3
  export class Map {
4
4
  /**
5
- * Doesn't actually return anything.
5
+ * Clear blip data. It must be used before RemoveBlip I'm pretty sure that blips are handled internally with databinding. This function should then allow you to clear blip container and therefore free up memory?.
6
6
  *
7
+ * @param blipid
7
8
  * @returns
8
9
  */
9
- static forceSonarBlipsThisFrame() {
10
- return inv('0xEE1C7BA69BB74B08');
10
+ static clearBlip(blipid) {
11
+ return inv('0x01B928CA2E198B01', blipid);
11
12
  }
12
13
  /**
13
- * @param scale
14
- * @param p1
14
+ * hash can be the hash of "guarma" or "world".
15
+ *
16
+ * @param zone
15
17
  */
16
- static setMinimapFowOverrideRevealScale(scale, p1) {
17
- inv('0xE5A7F70B7C0F3271', f(scale), _h(p1));
18
+ static setMinimapZone(zone) {
19
+ inv('0xA657EC9DBC6CC900', _h(zone));
18
20
  }
19
21
  /**
20
- * @param regionHash
22
+ * @param blipHash
23
+ * @param pos
24
+ * @param radius
25
+ * @returns
21
26
  */
22
- static disableRegionBlip(regionHash) {
23
- inv('0x6786D7AFAC3162B3', _h(regionHash));
27
+ static blipAddForRadius(blipHash, pos, radius) {
28
+ return inv('0x45F13B7E0A15C880', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
24
29
  }
25
30
  /**
26
- * in the decompiles this doesnt seem to ever be executed the param needed needs to be above 0 but its always passed as 0
27
- * removes the icon from lockon prompt
28
- *
29
- * @param entity
30
- * @param p1
31
+ * @param waypointRecording
32
+ * @param point
33
+ * @param numPoints
34
+ * @param colorNameHash
35
+ * @param p4
36
+ * @param p5
31
37
  */
32
- static removeBlipIconFromEntityLockonPrompt(entity, p1) {
33
- inv('0xBB68D4D3CA3DE402', entity.handle, p1);
38
+ static startGpsCustomRouteFromWaypointRecordingRoute(waypointRecording, point, numPoints, colorNameHash, p4, p5) {
39
+ inv('0x6B44F13D888F770D', waypointRecording, point, numPoints, _h(colorNameHash), p4, p5);
34
40
  }
35
41
  /**
36
- * @param hash
42
+ * @param pos
43
+ * @returns outPosition
37
44
  */
38
- static revealMinimapFow(hash) {
39
- inv('0xF8096DF9B87246E3', _h(hash));
45
+ static findClosestGpsPosition(pos) {
46
+ const result = inv('0x3FDA2B79AEEE351C', f(pos.x), f(pos.y), f(pos.z), pvv());
47
+ return [result[0], Vector3.fromArray(result[1])];
48
+ }
49
+ /**
50
+ * @returns
51
+ */
52
+ static getMainPlayerBlipId() {
53
+ return inv('0x5CD2889B2B381D45', rai());
54
+ }
55
+ /**
56
+ * @param blipHash
57
+ * @param pos
58
+ * @param scale
59
+ * @param p7
60
+ * @returns
61
+ */
62
+ static blipAddForArea(blipHash, pos, scale, p7) {
63
+ return inv('0xEC174ADBCB611ECC', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(scale.x), f(scale.y), f(scale.z), p7, rai());
40
64
  }
41
65
  /**
42
66
  * @param blip
67
+ * @param scale
68
+ */
69
+ static setBlipScale(blip, scale) {
70
+ inv('0xD38744167B2FA257', blip, f(scale));
71
+ }
72
+ /**
73
+ * Checks if the GPS route to the waypoint is navigable along a road. If a route exists but there is no valid road path, this function returns false.
74
+ *
43
75
  * @returns
44
76
  */
45
- static getBlipCoords(blip) {
46
- return Vector3.fromArray(inv('0x201C319797BDA603', blip, rav()));
77
+ static isGpsRouteOnRoad() {
78
+ return inv('0xF47A1EB2A538A3A3');
47
79
  }
48
80
  /**
49
- * https://github.com/femga/rdr3_discoveries/blob/master/graphics/minimap/radar/radar_configs.lua
50
- * configHash: -1943724816, 347777538, -117986897, -789269373, -547506804, -1986542417, 2080113112
51
- * p1: usually 898171178 or 0 in R* scripts (doesn't seems to have any effect)
81
+ * list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
82
+ * variations parameter are the interior locations you see on the map like these bellow
83
+ * variation 0 https://i.imgur.com/jkLhn3Z.png
84
+ * variation 2 https://i.imgur.com/eKV0Tcm.png
85
+ * variation 4 https://i.imgur.com/rjwOgEH.png
86
+ * there are more and you can find them in the decompiles
52
87
  *
53
- * @param configHash
88
+ * @param minimapProp
89
+ * @param pos
90
+ * @param rotation
91
+ * @param variation
92
+ */
93
+ static addPropToMinimap(minimapProp, pos, rotation, variation) {
94
+ inv('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
95
+ }
96
+ /**
97
+ * @param minimapProp
98
+ */
99
+ static removePropFromMinimap(minimapProp) {
100
+ inv('0xE057FEA9A22EB3EE', _h(minimapProp));
101
+ }
102
+ /**
103
+ * will remove the blip icon from the entity lockon prompt, use 0 for p1
104
+ *
105
+ * @param entity
54
106
  * @param p1
55
107
  */
56
- static setRadarConfigType(configHash, p1) {
57
- inv('0x9C113883487FD53C', _h(configHash), _h(p1));
108
+ static clearBlipIconFromLockonEntityPrompt(entity, p1) {
109
+ inv('0x44813684F72B563C', entity.handle, p1);
58
110
  }
59
111
  /**
60
- * It's unclear what exactly this does, but I assume it marks the blip as "no longer needed"
112
+ * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
61
113
  *
62
- * @param blip
114
+ * @param p0
115
+ * @param p1
63
116
  */
64
- static abandonBlip(blip) {
65
- inv('0xDEEDE7C41742E011', blip);
117
+ static setGpsFlags(p0, p1) {
118
+ inv('0x5DE61C90DDECFA2D', p0, f(p1));
66
119
  }
67
120
  /**
68
121
  * @param blip
69
- * @param styleHash
70
- * @returns
122
+ * @param player
71
123
  */
72
- static blipAddStyle(blip, styleHash) {
73
- return inv('0xBD62D98799A3DAF0', blip, _h(styleHash));
124
+ static setBlipNameToPlayerName(blip, player) {
125
+ inv('0x093DD5A31BC2B459', blip, player.handle);
74
126
  }
75
127
  /**
128
+ * @param blip
129
+ * @param blipType
76
130
  * @param blipHash
77
- * @param volume
78
- * @returns
79
131
  */
80
- static blipAddForVolume(blipHash, volume) {
81
- return inv('0xA6EF0C54A3443E70', _h(blipHash), volume.handle, rai());
132
+ static setBlipFlashTimer(blip, blipType, blipHash) {
133
+ inv('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
82
134
  }
83
135
  /**
84
- * If modifierHash is 0, ALL modifiers will be removed.
85
- *
86
- * @param blip
87
- * @param modifierHash
88
- * @returns
136
+ * @param hash
89
137
  */
90
- static blipRemoveModifier(blip, modifierHash) {
91
- return inv('0xB059D7BD3D78C16F', blip, _h(modifierHash));
138
+ static resetMinimapFow(hash) {
139
+ inv('0xEB3CB3386C775D72', _h(hash));
92
140
  }
93
- static unlockMinimapAngle() {
94
- inv('0x5373DE8E179BC2A0');
141
+ /**
142
+ * @param colorNameHash
143
+ * @param onFoot
144
+ * @param inVehicle
145
+ */
146
+ static startGpsMultiRoute(colorNameHash, onFoot, inVehicle) {
147
+ inv('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
95
148
  }
96
149
  /**
97
- * @param blipHash
150
+ * will add a blip icon to the entity lockon prompt that you specify
151
+ *
98
152
  * @param entity
99
- * @returns
153
+ * @param blipIcon
100
154
  */
101
- static blipAddForEntity(blipHash, entity) {
102
- return inv('0x23F74C2FDA6E7C61', _h(blipHash), entity.handle, rai());
155
+ static setBlipIconToLockonEntityPrompt(entity, blipIcon) {
156
+ inv('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
103
157
  }
104
158
  /**
105
- * @param typeHash
159
+ * Returns the Blip handle of given Entity.
160
+ *
106
161
  * @param entity
162
+ * @returns
107
163
  */
108
- static triggerSonarBlipOnEntity(typeHash, entity) {
109
- inv('0x0C7A2289A5C4D7C9', _h(typeHash), entity.handle);
164
+ static getBlipFromEntity(entity) {
165
+ return inv('0x6D2C41A8BD6D6FD0', entity.handle, rai());
110
166
  }
111
167
  /**
112
- * Not official native name
113
- * Removes the blip from an entity and makes it static on the map, try it on GetMainPlayerBlipId() for a demonstration
168
+ * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
169
+ */
170
+ static clearPausemapCoords() {
171
+ inv('0x7C9F4CDF402CA82A');
172
+ }
173
+ /**
174
+ * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
175
+ * Hash p1 seems to be unused, always 0
114
176
  *
177
+ * @param toggle
178
+ * @param p1
179
+ */
180
+ static setFowUpdatePlayerOverride(toggle, p1) {
181
+ inv('0x63E7279D04160477', toggle, _h(p1));
182
+ }
183
+ /**
115
184
  * @param blip
185
+ * @returns
116
186
  */
117
- static blipDetachFromEntity(blip) {
118
- inv('0x250C75EB1728CC0D', blip);
187
+ static isBlipOnMinimap(blip) {
188
+ return !!inv('0x46534526B9CD2D17', blip, rai());
119
189
  }
120
190
  /**
121
- * Locks the minimap to the specified angle in integer degrees. angle: The angle in whole degrees. If less than 0 or greater than 360, unlocks the angle.
191
+ * https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
192
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
122
193
  *
123
- * @param angle
194
+ * @param blip
195
+ * @param modifierHash
196
+ * @returns
124
197
  */
125
- static lockMinimapAngle(angle) {
126
- inv('0x0BFD145EF819FB3A', angle);
198
+ static blipAddModifier(blip, modifierHash) {
199
+ return inv('0x662D364ABF16DE2F', blip, _h(modifierHash));
200
+ }
201
+ /**
202
+ * Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
203
+ */
204
+ static clearGpsMultiRoute() {
205
+ inv('0x9E0AB9AAEE87CE28');
127
206
  }
128
207
  /**
129
208
  * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
@@ -329,207 +408,128 @@ export class Map {
329
408
  inv('0x4B8F743A4A6D2FF8', toggle);
330
409
  }
331
410
  /**
332
- * Clear blip data. It must be used before RemoveBlip I'm pretty sure that blips are handled internally with databinding. This function should then allow you to clear blip container and therefore free up memory?.
333
- *
334
- * @param blipid
335
- * @returns
336
- */
337
- static clearBlip(blipid) {
338
- return inv('0x01B928CA2E198B01', blipid);
339
- }
340
- /**
341
- * hash can be the hash of "guarma" or "world".
411
+ * Doesn't actually return anything.
342
412
  *
343
- * @param zone
344
- */
345
- static setMinimapZone(zone) {
346
- inv('0xA657EC9DBC6CC900', _h(zone));
347
- }
348
- /**
349
- * @param blipHash
350
- * @param pos
351
- * @param radius
352
- * @returns
353
- */
354
- static blipAddForRadius(blipHash, pos, radius) {
355
- return inv('0x45F13B7E0A15C880', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
356
- }
357
- /**
358
- * @param waypointRecording
359
- * @param point
360
- * @param numPoints
361
- * @param colorNameHash
362
- * @param p4
363
- * @param p5
364
- */
365
- static startGpsCustomRouteFromWaypointRecordingRoute(waypointRecording, point, numPoints, colorNameHash, p4, p5) {
366
- inv('0x6B44F13D888F770D', waypointRecording, point, numPoints, _h(colorNameHash), p4, p5);
367
- }
368
- /**
369
- * @param pos
370
- * @returns outPosition
371
- */
372
- static findClosestGpsPosition(pos) {
373
- const result = inv('0x3FDA2B79AEEE351C', f(pos.x), f(pos.y), f(pos.z), pvv());
374
- return [result[0], Vector3.fromArray(result[1])];
375
- }
376
- /**
377
413
  * @returns
378
414
  */
379
- static getMainPlayerBlipId() {
380
- return inv('0x5CD2889B2B381D45', rai());
415
+ static forceSonarBlipsThisFrame() {
416
+ return inv('0xEE1C7BA69BB74B08');
381
417
  }
382
418
  /**
383
- * @param blipHash
384
- * @param pos
385
419
  * @param scale
386
- * @param p7
387
- * @returns
420
+ * @param p1
388
421
  */
389
- static blipAddForArea(blipHash, pos, scale, p7) {
390
- return inv('0xEC174ADBCB611ECC', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(scale.x), f(scale.y), f(scale.z), p7, rai());
422
+ static setMinimapFowOverrideRevealScale(scale, p1) {
423
+ inv('0xE5A7F70B7C0F3271', f(scale), _h(p1));
391
424
  }
392
425
  /**
393
- * @param blip
394
- * @param scale
426
+ * @param regionHash
395
427
  */
396
- static setBlipScale(blip, scale) {
397
- inv('0xD38744167B2FA257', blip, f(scale));
428
+ static disableRegionBlip(regionHash) {
429
+ inv('0x6786D7AFAC3162B3', _h(regionHash));
398
430
  }
399
431
  /**
400
- * Checks if the GPS route to the waypoint is navigable along a road. If a route exists but there is no valid road path, this function returns false.
432
+ * in the decompiles this doesnt seem to ever be executed the param needed needs to be above 0 but its always passed as 0
433
+ * removes the icon from lockon prompt
401
434
  *
402
- * @returns
435
+ * @param entity
436
+ * @param p1
403
437
  */
404
- static isGpsRouteOnRoad() {
405
- return inv('0xF47A1EB2A538A3A3');
438
+ static removeBlipIconFromEntityLockonPrompt(entity, p1) {
439
+ inv('0xBB68D4D3CA3DE402', entity.handle, p1);
406
440
  }
407
441
  /**
408
- * list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
409
- * variations parameter are the interior locations you see on the map like these bellow
410
- * variation 0 https://i.imgur.com/jkLhn3Z.png
411
- * variation 2 https://i.imgur.com/eKV0Tcm.png
412
- * variation 4 https://i.imgur.com/rjwOgEH.png
413
- * there are more and you can find them in the decompiles
414
- *
415
- * @param minimapProp
416
- * @param pos
417
- * @param rotation
418
- * @param variation
442
+ * @param hash
419
443
  */
420
- static addPropToMinimap(minimapProp, pos, rotation, variation) {
421
- inv('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
444
+ static revealMinimapFow(hash) {
445
+ inv('0xF8096DF9B87246E3', _h(hash));
422
446
  }
423
447
  /**
424
- * @param minimapProp
448
+ * @param blip
449
+ * @returns
425
450
  */
426
- static removePropFromMinimap(minimapProp) {
427
- inv('0xE057FEA9A22EB3EE', _h(minimapProp));
451
+ static getBlipCoords(blip) {
452
+ return Vector3.fromArray(inv('0x201C319797BDA603', blip, rav()));
428
453
  }
429
454
  /**
430
- * will remove the blip icon from the entity lockon prompt, use 0 for p1
455
+ * https://github.com/femga/rdr3_discoveries/blob/master/graphics/minimap/radar/radar_configs.lua
456
+ * configHash: -1943724816, 347777538, -117986897, -789269373, -547506804, -1986542417, 2080113112
457
+ * p1: usually 898171178 or 0 in R* scripts (doesn't seems to have any effect)
431
458
  *
432
- * @param entity
459
+ * @param configHash
433
460
  * @param p1
434
461
  */
435
- static clearBlipIconFromLockonEntityPrompt(entity, p1) {
436
- inv('0x44813684F72B563C', entity.handle, p1);
462
+ static setRadarConfigType(configHash, p1) {
463
+ inv('0x9C113883487FD53C', _h(configHash), _h(p1));
437
464
  }
438
465
  /**
439
- * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
466
+ * It's unclear what exactly this does, but I assume it marks the blip as "no longer needed"
440
467
  *
441
- * @param p0
442
- * @param p1
443
- */
444
- static setGpsFlags(p0, p1) {
445
- inv('0x5DE61C90DDECFA2D', p0, f(p1));
446
- }
447
- /**
448
468
  * @param blip
449
- * @param player
450
469
  */
451
- static setBlipNameToPlayerName(blip, player) {
452
- inv('0x093DD5A31BC2B459', blip, player.handle);
470
+ static abandonBlip(blip) {
471
+ inv('0xDEEDE7C41742E011', blip);
453
472
  }
454
473
  /**
455
474
  * @param blip
456
- * @param blipType
457
- * @param blipHash
458
- */
459
- static setBlipFlashTimer(blip, blipType, blipHash) {
460
- inv('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
461
- }
462
- /**
463
- * @param hash
475
+ * @param styleHash
476
+ * @returns
464
477
  */
465
- static resetMinimapFow(hash) {
466
- inv('0xEB3CB3386C775D72', _h(hash));
478
+ static blipAddStyle(blip, styleHash) {
479
+ return inv('0xBD62D98799A3DAF0', blip, _h(styleHash));
467
480
  }
468
481
  /**
469
- * @param colorNameHash
470
- * @param onFoot
471
- * @param inVehicle
482
+ * @param blipHash
483
+ * @param volume
484
+ * @returns
472
485
  */
473
- static startGpsMultiRoute(colorNameHash, onFoot, inVehicle) {
474
- inv('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
486
+ static blipAddForVolume(blipHash, volume) {
487
+ return inv('0xA6EF0C54A3443E70', _h(blipHash), volume.handle, rai());
475
488
  }
476
489
  /**
477
- * will add a blip icon to the entity lockon prompt that you specify
490
+ * If modifierHash is 0, ALL modifiers will be removed.
478
491
  *
479
- * @param entity
480
- * @param blipIcon
492
+ * @param blip
493
+ * @param modifierHash
494
+ * @returns
481
495
  */
482
- static setBlipIconToLockonEntityPrompt(entity, blipIcon) {
483
- inv('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
496
+ static blipRemoveModifier(blip, modifierHash) {
497
+ return inv('0xB059D7BD3D78C16F', blip, _h(modifierHash));
498
+ }
499
+ static unlockMinimapAngle() {
500
+ inv('0x5373DE8E179BC2A0');
484
501
  }
485
502
  /**
486
- * Returns the Blip handle of given Entity.
487
- *
503
+ * @param blipHash
488
504
  * @param entity
489
505
  * @returns
490
506
  */
491
- static getBlipFromEntity(entity) {
492
- return inv('0x6D2C41A8BD6D6FD0', entity.handle, rai());
507
+ static blipAddForEntity(blipHash, entity) {
508
+ return inv('0x23F74C2FDA6E7C61', _h(blipHash), entity.handle, rai());
493
509
  }
494
510
  /**
495
- * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
511
+ * @param typeHash
512
+ * @param entity
496
513
  */
497
- static clearPausemapCoords() {
498
- inv('0x7C9F4CDF402CA82A');
514
+ static triggerSonarBlipOnEntity(typeHash, entity) {
515
+ inv('0x0C7A2289A5C4D7C9', _h(typeHash), entity.handle);
499
516
  }
500
517
  /**
501
- * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
502
- * Hash p1 seems to be unused, always 0
518
+ * Not official native name
519
+ * Removes the blip from an entity and makes it static on the map, try it on GetMainPlayerBlipId() for a demonstration
503
520
  *
504
- * @param toggle
505
- * @param p1
506
- */
507
- static setFowUpdatePlayerOverride(toggle, p1) {
508
- inv('0x63E7279D04160477', toggle, _h(p1));
509
- }
510
- /**
511
521
  * @param blip
512
- * @returns
513
522
  */
514
- static isBlipOnMinimap(blip) {
515
- return !!inv('0x46534526B9CD2D17', blip, rai());
523
+ static blipDetachFromEntity(blip) {
524
+ inv('0x250C75EB1728CC0D', blip);
516
525
  }
517
526
  /**
518
- * https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
519
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
527
+ * Locks the minimap to the specified angle in integer degrees. angle: The angle in whole degrees. If less than 0 or greater than 360, unlocks the angle.
520
528
  *
521
- * @param blip
522
- * @param modifierHash
523
- * @returns
524
- */
525
- static blipAddModifier(blip, modifierHash) {
526
- return inv('0x662D364ABF16DE2F', blip, _h(modifierHash));
527
- }
528
- /**
529
- * Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
529
+ * @param angle
530
530
  */
531
- static clearGpsMultiRoute() {
532
- inv('0x9E0AB9AAEE87CE28');
531
+ static lockMinimapAngle(angle) {
532
+ inv('0x0BFD145EF819FB3A', angle);
533
533
  }
534
534
  /**
535
535
  * @param blip