@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
@@ -12,143 +12,230 @@ import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f } from '../ty
12
12
 
13
13
  export class Map {
14
14
  /**
15
- * Doesn't actually return anything.
15
+ * 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?.
16
16
  *
17
+ * @param blipid
17
18
  * @returns
18
19
  */
19
- static forceSonarBlipsThisFrame(): any {
20
- return inv<number>('0xEE1C7BA69BB74B08');
20
+ static clearBlip(blipid: number): any {
21
+ return inv<number>('0x01B928CA2E198B01', blipid);
21
22
  }
22
23
 
23
24
  /**
24
- * @param scale
25
- * @param p1
25
+ * hash can be the hash of "guarma" or "world".
26
+ *
27
+ * @param zone
26
28
  */
27
- static setMinimapFowOverrideRevealScale(scale: number, p1: string | number): void {
28
- inv<void>('0xE5A7F70B7C0F3271', f(scale), _h(p1));
29
+ static setMinimapZone(zone: string | number): void {
30
+ inv<void>('0xA657EC9DBC6CC900', _h(zone));
29
31
  }
30
32
 
31
33
  /**
32
- * @param regionHash
34
+ * @param blipHash
35
+ * @param pos
36
+ * @param radius
37
+ * @returns
33
38
  */
34
- static disableRegionBlip(regionHash: string | number): void {
35
- inv<void>('0x6786D7AFAC3162B3', _h(regionHash));
39
+ static blipAddForRadius(blipHash: string | number, pos: Vector3, radius: number): number {
40
+ return inv<number>('0x45F13B7E0A15C880', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
36
41
  }
37
42
 
38
43
  /**
39
- * in the decompiles this doesnt seem to ever be executed the param needed needs to be above 0 but its always passed as 0
40
- * removes the icon from lockon prompt
41
- *
42
- * @param entity
43
- * @param p1
44
+ * @param waypointRecording
45
+ * @param point
46
+ * @param numPoints
47
+ * @param colorNameHash
48
+ * @param p4
49
+ * @param p5
44
50
  */
45
- static removeBlipIconFromEntityLockonPrompt(entity: Entity, p1: number): void {
46
- inv<void>('0xBB68D4D3CA3DE402', entity.handle, p1);
51
+ static startGpsCustomRouteFromWaypointRecordingRoute(waypointRecording: string | null, point: number, numPoints: number, colorNameHash: string | number, p4: boolean, p5: boolean): void {
52
+ inv<void>('0x6B44F13D888F770D', waypointRecording, point, numPoints, _h(colorNameHash), p4, p5);
47
53
  }
48
54
 
49
55
  /**
50
- * @param hash
56
+ * @param pos
57
+ * @returns outPosition
51
58
  */
52
- static revealMinimapFow(hash: string | number): void {
53
- inv<void>('0xF8096DF9B87246E3', _h(hash));
59
+ static findClosestGpsPosition(pos: Vector3): [any, Vector3] {
60
+ const result = inv<[number, number[]]>('0x3FDA2B79AEEE351C', f(pos.x), f(pos.y), f(pos.z), pvv());
61
+ return [result[0], Vector3.fromArray(result[1])];
62
+ }
63
+
64
+ /**
65
+ * @returns
66
+ */
67
+ static getMainPlayerBlipId(): number {
68
+ return inv<number>('0x5CD2889B2B381D45', rai());
69
+ }
70
+
71
+ /**
72
+ * @param blipHash
73
+ * @param pos
74
+ * @param scale
75
+ * @param p7
76
+ * @returns
77
+ */
78
+ static blipAddForArea(blipHash: string | number, pos: Vector3, scale: Vector3, p7: number): number {
79
+ return inv<number>('0xEC174ADBCB611ECC', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(scale.x), f(scale.y), f(scale.z), p7, rai());
54
80
  }
55
81
 
56
82
  /**
57
83
  * @param blip
84
+ * @param scale
85
+ */
86
+ static setBlipScale(blip: number, scale: number): void {
87
+ inv<void>('0xD38744167B2FA257', blip, f(scale));
88
+ }
89
+
90
+ /**
91
+ * 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.
92
+ *
58
93
  * @returns
59
94
  */
60
- static getBlipCoords(blip: number): Vector3 {
61
- return Vector3.fromArray(inv<number[]>('0x201C319797BDA603', blip, rav()));
95
+ static isGpsRouteOnRoad(): any {
96
+ return inv<number>('0xF47A1EB2A538A3A3');
62
97
  }
63
98
 
64
99
  /**
65
- * https://github.com/femga/rdr3_discoveries/blob/master/graphics/minimap/radar/radar_configs.lua
66
- * configHash: -1943724816, 347777538, -117986897, -789269373, -547506804, -1986542417, 2080113112
67
- * p1: usually 898171178 or 0 in R* scripts (doesn't seems to have any effect)
100
+ * list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
101
+ * variations parameter are the interior locations you see on the map like these bellow
102
+ * variation 0 https://i.imgur.com/jkLhn3Z.png
103
+ * variation 2 https://i.imgur.com/eKV0Tcm.png
104
+ * variation 4 https://i.imgur.com/rjwOgEH.png
105
+ * there are more and you can find them in the decompiles
68
106
  *
69
- * @param configHash
107
+ * @param minimapProp
108
+ * @param pos
109
+ * @param rotation
110
+ * @param variation
111
+ */
112
+ static addPropToMinimap(minimapProp: string | number, pos: Vector2, rotation: number, variation: number): void {
113
+ inv<void>('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
114
+ }
115
+
116
+ /**
117
+ * @param minimapProp
118
+ */
119
+ static removePropFromMinimap(minimapProp: string | number): void {
120
+ inv<void>('0xE057FEA9A22EB3EE', _h(minimapProp));
121
+ }
122
+
123
+ /**
124
+ * will remove the blip icon from the entity lockon prompt, use 0 for p1
125
+ *
126
+ * @param entity
70
127
  * @param p1
71
128
  */
72
- static setRadarConfigType(configHash: string | number, p1: string | number): void {
73
- inv<void>('0x9C113883487FD53C', _h(configHash), _h(p1));
129
+ static clearBlipIconFromLockonEntityPrompt(entity: Entity, p1: number): void {
130
+ inv<void>('0x44813684F72B563C', entity.handle, p1);
74
131
  }
75
132
 
76
133
  /**
77
- * It's unclear what exactly this does, but I assume it marks the blip as "no longer needed"
134
+ * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
78
135
  *
79
- * @param blip
136
+ * @param p0
137
+ * @param p1
80
138
  */
81
- static abandonBlip(blip: number): void {
82
- inv<void>('0xDEEDE7C41742E011', blip);
139
+ static setGpsFlags(p0: number, p1: number): void {
140
+ inv<void>('0x5DE61C90DDECFA2D', p0, f(p1));
83
141
  }
84
142
 
85
143
  /**
86
144
  * @param blip
87
- * @param styleHash
88
- * @returns
145
+ * @param player
89
146
  */
90
- static blipAddStyle(blip: number, styleHash: string | number): any {
91
- return inv<number>('0xBD62D98799A3DAF0', blip, _h(styleHash));
147
+ static setBlipNameToPlayerName(blip: number, player: Player): void {
148
+ inv<void>('0x093DD5A31BC2B459', blip, player.handle);
92
149
  }
93
150
 
94
151
  /**
152
+ * @param blip
153
+ * @param blipType
95
154
  * @param blipHash
96
- * @param volume
97
- * @returns
98
155
  */
99
- static blipAddForVolume(blipHash: string | number, volume: Volume): number {
100
- return inv<number>('0xA6EF0C54A3443E70', _h(blipHash), volume.handle, rai());
156
+ static setBlipFlashTimer(blip: number, blipType: number, blipHash: string | number): void {
157
+ inv<void>('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
101
158
  }
102
159
 
103
160
  /**
104
- * If modifierHash is 0, ALL modifiers will be removed.
105
- *
106
- * @param blip
107
- * @param modifierHash
108
- * @returns
161
+ * @param hash
109
162
  */
110
- static blipRemoveModifier(blip: number, modifierHash: string | number): any {
111
- return inv<number>('0xB059D7BD3D78C16F', blip, _h(modifierHash));
163
+ static resetMinimapFow(hash: string | number): void {
164
+ inv<void>('0xEB3CB3386C775D72', _h(hash));
112
165
  }
113
166
 
114
- static unlockMinimapAngle(): void {
115
- inv<void>('0x5373DE8E179BC2A0');
167
+ /**
168
+ * @param colorNameHash
169
+ * @param onFoot
170
+ * @param inVehicle
171
+ */
172
+ static startGpsMultiRoute(colorNameHash: string | number, onFoot: boolean, inVehicle: boolean): void {
173
+ inv<void>('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
116
174
  }
117
175
 
118
176
  /**
119
- * @param blipHash
177
+ * will add a blip icon to the entity lockon prompt that you specify
178
+ *
120
179
  * @param entity
121
- * @returns
180
+ * @param blipIcon
122
181
  */
123
- static blipAddForEntity(blipHash: string | number, entity: Entity): number {
124
- return inv<number>('0x23F74C2FDA6E7C61', _h(blipHash), entity.handle, rai());
182
+ static setBlipIconToLockonEntityPrompt(entity: Entity, blipIcon: string | number): void {
183
+ inv<void>('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
125
184
  }
126
185
 
127
186
  /**
128
- * @param typeHash
187
+ * Returns the Blip handle of given Entity.
188
+ *
129
189
  * @param entity
190
+ * @returns
130
191
  */
131
- static triggerSonarBlipOnEntity(typeHash: string | number, entity: Entity): void {
132
- inv<void>('0x0C7A2289A5C4D7C9', _h(typeHash), entity.handle);
192
+ static getBlipFromEntity(entity: Entity): number {
193
+ return inv<number>('0x6D2C41A8BD6D6FD0', entity.handle, rai());
133
194
  }
134
195
 
135
196
  /**
136
- * Not official native name
137
- * Removes the blip from an entity and makes it static on the map, try it on GetMainPlayerBlipId() for a demonstration
197
+ * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
198
+ */
199
+ static clearPausemapCoords(): void {
200
+ inv<void>('0x7C9F4CDF402CA82A');
201
+ }
202
+
203
+ /**
204
+ * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
205
+ * Hash p1 seems to be unused, always 0
138
206
  *
207
+ * @param toggle
208
+ * @param p1
209
+ */
210
+ static setFowUpdatePlayerOverride(toggle: boolean, p1: string | number): void {
211
+ inv<void>('0x63E7279D04160477', toggle, _h(p1));
212
+ }
213
+
214
+ /**
139
215
  * @param blip
216
+ * @returns
140
217
  */
141
- static blipDetachFromEntity(blip: number): void {
142
- inv<void>('0x250C75EB1728CC0D', blip);
218
+ static isBlipOnMinimap(blip: number): boolean {
219
+ return !!inv<boolean>('0x46534526B9CD2D17', blip, rai());
143
220
  }
144
221
 
145
222
  /**
146
- * 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.
223
+ * https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
224
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
147
225
  *
148
- * @param angle
226
+ * @param blip
227
+ * @param modifierHash
228
+ * @returns
149
229
  */
150
- static lockMinimapAngle(angle: number): void {
151
- inv<void>('0x0BFD145EF819FB3A', angle);
230
+ static blipAddModifier(blip: number, modifierHash: string | number): any {
231
+ return inv<number>('0x662D364ABF16DE2F', blip, _h(modifierHash));
232
+ }
233
+
234
+ /**
235
+ * Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
236
+ */
237
+ static clearGpsMultiRoute(): void {
238
+ inv<void>('0x9E0AB9AAEE87CE28');
152
239
  }
153
240
 
154
241
  /**
@@ -384,230 +471,143 @@ export class Map {
384
471
  }
385
472
 
386
473
  /**
387
- * 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?.
388
- *
389
- * @param blipid
390
- * @returns
391
- */
392
- static clearBlip(blipid: number): any {
393
- return inv<number>('0x01B928CA2E198B01', blipid);
394
- }
395
-
396
- /**
397
- * hash can be the hash of "guarma" or "world".
474
+ * Doesn't actually return anything.
398
475
  *
399
- * @param zone
400
- */
401
- static setMinimapZone(zone: string | number): void {
402
- inv<void>('0xA657EC9DBC6CC900', _h(zone));
403
- }
404
-
405
- /**
406
- * @param blipHash
407
- * @param pos
408
- * @param radius
409
- * @returns
410
- */
411
- static blipAddForRadius(blipHash: string | number, pos: Vector3, radius: number): number {
412
- return inv<number>('0x45F13B7E0A15C880', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
413
- }
414
-
415
- /**
416
- * @param waypointRecording
417
- * @param point
418
- * @param numPoints
419
- * @param colorNameHash
420
- * @param p4
421
- * @param p5
422
- */
423
- static startGpsCustomRouteFromWaypointRecordingRoute(waypointRecording: string | null, point: number, numPoints: number, colorNameHash: string | number, p4: boolean, p5: boolean): void {
424
- inv<void>('0x6B44F13D888F770D', waypointRecording, point, numPoints, _h(colorNameHash), p4, p5);
425
- }
426
-
427
- /**
428
- * @param pos
429
- * @returns outPosition
430
- */
431
- static findClosestGpsPosition(pos: Vector3): [any, Vector3] {
432
- const result = inv<[number, number[]]>('0x3FDA2B79AEEE351C', f(pos.x), f(pos.y), f(pos.z), pvv());
433
- return [result[0], Vector3.fromArray(result[1])];
434
- }
435
-
436
- /**
437
476
  * @returns
438
477
  */
439
- static getMainPlayerBlipId(): number {
440
- return inv<number>('0x5CD2889B2B381D45', rai());
478
+ static forceSonarBlipsThisFrame(): any {
479
+ return inv<number>('0xEE1C7BA69BB74B08');
441
480
  }
442
481
 
443
482
  /**
444
- * @param blipHash
445
- * @param pos
446
483
  * @param scale
447
- * @param p7
448
- * @returns
484
+ * @param p1
449
485
  */
450
- static blipAddForArea(blipHash: string | number, pos: Vector3, scale: Vector3, p7: number): number {
451
- return inv<number>('0xEC174ADBCB611ECC', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(scale.x), f(scale.y), f(scale.z), p7, rai());
486
+ static setMinimapFowOverrideRevealScale(scale: number, p1: string | number): void {
487
+ inv<void>('0xE5A7F70B7C0F3271', f(scale), _h(p1));
452
488
  }
453
489
 
454
490
  /**
455
- * @param blip
456
- * @param scale
491
+ * @param regionHash
457
492
  */
458
- static setBlipScale(blip: number, scale: number): void {
459
- inv<void>('0xD38744167B2FA257', blip, f(scale));
493
+ static disableRegionBlip(regionHash: string | number): void {
494
+ inv<void>('0x6786D7AFAC3162B3', _h(regionHash));
460
495
  }
461
496
 
462
497
  /**
463
- * 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.
498
+ * in the decompiles this doesnt seem to ever be executed the param needed needs to be above 0 but its always passed as 0
499
+ * removes the icon from lockon prompt
464
500
  *
465
- * @returns
501
+ * @param entity
502
+ * @param p1
466
503
  */
467
- static isGpsRouteOnRoad(): any {
468
- return inv<number>('0xF47A1EB2A538A3A3');
504
+ static removeBlipIconFromEntityLockonPrompt(entity: Entity, p1: number): void {
505
+ inv<void>('0xBB68D4D3CA3DE402', entity.handle, p1);
469
506
  }
470
507
 
471
508
  /**
472
- * list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
473
- * variations parameter are the interior locations you see on the map like these bellow
474
- * variation 0 https://i.imgur.com/jkLhn3Z.png
475
- * variation 2 https://i.imgur.com/eKV0Tcm.png
476
- * variation 4 https://i.imgur.com/rjwOgEH.png
477
- * there are more and you can find them in the decompiles
478
- *
479
- * @param minimapProp
480
- * @param pos
481
- * @param rotation
482
- * @param variation
509
+ * @param hash
483
510
  */
484
- static addPropToMinimap(minimapProp: string | number, pos: Vector2, rotation: number, variation: number): void {
485
- inv<void>('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
511
+ static revealMinimapFow(hash: string | number): void {
512
+ inv<void>('0xF8096DF9B87246E3', _h(hash));
486
513
  }
487
514
 
488
515
  /**
489
- * @param minimapProp
516
+ * @param blip
517
+ * @returns
490
518
  */
491
- static removePropFromMinimap(minimapProp: string | number): void {
492
- inv<void>('0xE057FEA9A22EB3EE', _h(minimapProp));
519
+ static getBlipCoords(blip: number): Vector3 {
520
+ return Vector3.fromArray(inv<number[]>('0x201C319797BDA603', blip, rav()));
493
521
  }
494
522
 
495
523
  /**
496
- * will remove the blip icon from the entity lockon prompt, use 0 for p1
524
+ * https://github.com/femga/rdr3_discoveries/blob/master/graphics/minimap/radar/radar_configs.lua
525
+ * configHash: -1943724816, 347777538, -117986897, -789269373, -547506804, -1986542417, 2080113112
526
+ * p1: usually 898171178 or 0 in R* scripts (doesn't seems to have any effect)
497
527
  *
498
- * @param entity
528
+ * @param configHash
499
529
  * @param p1
500
530
  */
501
- static clearBlipIconFromLockonEntityPrompt(entity: Entity, p1: number): void {
502
- inv<void>('0x44813684F72B563C', entity.handle, p1);
531
+ static setRadarConfigType(configHash: string | number, p1: string | number): void {
532
+ inv<void>('0x9C113883487FD53C', _h(configHash), _h(p1));
503
533
  }
504
534
 
505
535
  /**
506
- * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
536
+ * It's unclear what exactly this does, but I assume it marks the blip as "no longer needed"
507
537
  *
508
- * @param p0
509
- * @param p1
510
- */
511
- static setGpsFlags(p0: number, p1: number): void {
512
- inv<void>('0x5DE61C90DDECFA2D', p0, f(p1));
513
- }
514
-
515
- /**
516
538
  * @param blip
517
- * @param player
518
539
  */
519
- static setBlipNameToPlayerName(blip: number, player: Player): void {
520
- inv<void>('0x093DD5A31BC2B459', blip, player.handle);
540
+ static abandonBlip(blip: number): void {
541
+ inv<void>('0xDEEDE7C41742E011', blip);
521
542
  }
522
543
 
523
544
  /**
524
545
  * @param blip
525
- * @param blipType
526
- * @param blipHash
546
+ * @param styleHash
547
+ * @returns
527
548
  */
528
- static setBlipFlashTimer(blip: number, blipType: number, blipHash: string | number): void {
529
- inv<void>('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
549
+ static blipAddStyle(blip: number, styleHash: string | number): any {
550
+ return inv<number>('0xBD62D98799A3DAF0', blip, _h(styleHash));
530
551
  }
531
552
 
532
553
  /**
533
- * @param hash
554
+ * @param blipHash
555
+ * @param volume
556
+ * @returns
534
557
  */
535
- static resetMinimapFow(hash: string | number): void {
536
- inv<void>('0xEB3CB3386C775D72', _h(hash));
558
+ static blipAddForVolume(blipHash: string | number, volume: Volume): number {
559
+ return inv<number>('0xA6EF0C54A3443E70', _h(blipHash), volume.handle, rai());
537
560
  }
538
561
 
539
562
  /**
540
- * @param colorNameHash
541
- * @param onFoot
542
- * @param inVehicle
563
+ * If modifierHash is 0, ALL modifiers will be removed.
564
+ *
565
+ * @param blip
566
+ * @param modifierHash
567
+ * @returns
543
568
  */
544
- static startGpsMultiRoute(colorNameHash: string | number, onFoot: boolean, inVehicle: boolean): void {
545
- inv<void>('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
569
+ static blipRemoveModifier(blip: number, modifierHash: string | number): any {
570
+ return inv<number>('0xB059D7BD3D78C16F', blip, _h(modifierHash));
546
571
  }
547
572
 
548
- /**
549
- * will add a blip icon to the entity lockon prompt that you specify
550
- *
551
- * @param entity
552
- * @param blipIcon
553
- */
554
- static setBlipIconToLockonEntityPrompt(entity: Entity, blipIcon: string | number): void {
555
- inv<void>('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
573
+ static unlockMinimapAngle(): void {
574
+ inv<void>('0x5373DE8E179BC2A0');
556
575
  }
557
576
 
558
577
  /**
559
- * Returns the Blip handle of given Entity.
560
- *
578
+ * @param blipHash
561
579
  * @param entity
562
580
  * @returns
563
581
  */
564
- static getBlipFromEntity(entity: Entity): number {
565
- return inv<number>('0x6D2C41A8BD6D6FD0', entity.handle, rai());
582
+ static blipAddForEntity(blipHash: string | number, entity: Entity): number {
583
+ return inv<number>('0x23F74C2FDA6E7C61', _h(blipHash), entity.handle, rai());
566
584
  }
567
585
 
568
586
  /**
569
- * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
587
+ * @param typeHash
588
+ * @param entity
570
589
  */
571
- static clearPausemapCoords(): void {
572
- inv<void>('0x7C9F4CDF402CA82A');
590
+ static triggerSonarBlipOnEntity(typeHash: string | number, entity: Entity): void {
591
+ inv<void>('0x0C7A2289A5C4D7C9', _h(typeHash), entity.handle);
573
592
  }
574
593
 
575
594
  /**
576
- * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
577
- * Hash p1 seems to be unused, always 0
595
+ * Not official native name
596
+ * Removes the blip from an entity and makes it static on the map, try it on GetMainPlayerBlipId() for a demonstration
578
597
  *
579
- * @param toggle
580
- * @param p1
581
- */
582
- static setFowUpdatePlayerOverride(toggle: boolean, p1: string | number): void {
583
- inv<void>('0x63E7279D04160477', toggle, _h(p1));
584
- }
585
-
586
- /**
587
598
  * @param blip
588
- * @returns
589
599
  */
590
- static isBlipOnMinimap(blip: number): boolean {
591
- return !!inv<boolean>('0x46534526B9CD2D17', blip, rai());
600
+ static blipDetachFromEntity(blip: number): void {
601
+ inv<void>('0x250C75EB1728CC0D', blip);
592
602
  }
593
603
 
594
604
  /**
595
- * https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
596
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
605
+ * 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.
597
606
  *
598
- * @param blip
599
- * @param modifierHash
600
- * @returns
601
- */
602
- static blipAddModifier(blip: number, modifierHash: string | number): any {
603
- return inv<number>('0x662D364ABF16DE2F', blip, _h(modifierHash));
604
- }
605
-
606
- /**
607
- * Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
607
+ * @param angle
608
608
  */
609
- static clearGpsMultiRoute(): void {
610
- inv<void>('0x9E0AB9AAEE87CE28');
609
+ static lockMinimapAngle(angle: number): void {
610
+ inv<void>('0x0BFD145EF819FB3A', angle);
611
611
  }
612
612
 
613
613
  /**