@nativewrappers/redm-codegen 0.0.3 → 0.0.4

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 (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  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/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -126,246 +126,116 @@ export class Map {
126
126
  inv('0x0BFD145EF819FB3A', angle);
127
127
  }
128
128
  /**
129
- * 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.
130
- *
131
- * @returns
132
- */
133
- static isGpsRouteOnRoad() {
134
- return inv('0xF47A1EB2A538A3A3');
135
- }
136
- /**
137
- * list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
138
- * variations parameter are the interior locations you see on the map like these bellow
139
- * variation 0 https://i.imgur.com/jkLhn3Z.png
140
- * variation 2 https://i.imgur.com/eKV0Tcm.png
141
- * variation 4 https://i.imgur.com/rjwOgEH.png
142
- * there are more and you can find them in the decompiles
143
- *
144
- * @param minimapProp
145
- * @param pos
146
- * @param rotation
147
- * @param variation
148
- */
149
- static addPropToMinimap(minimapProp, pos, rotation, variation) {
150
- inv('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
151
- }
152
- /**
153
- * @param minimapProp
154
- */
155
- static removePropFromMinimap(minimapProp) {
156
- inv('0xE057FEA9A22EB3EE', _h(minimapProp));
157
- }
158
- /**
159
- * will remove the blip icon from the entity lockon prompt, use 0 for p1
129
+ * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
160
130
  *
161
131
  * @param entity
162
- * @param p1
132
+ * @param blipId
163
133
  */
164
- static clearBlipIconFromLockonEntityPrompt(entity, p1) {
165
- inv('0x44813684F72B563C', entity.handle, p1);
134
+ static setEntityBlipIconToLockonEntityPrompt(entity, blipId) {
135
+ inv('0x97F6F158CC5B5CA2', entity.handle, blipId);
166
136
  }
167
137
  /**
168
- * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
169
- *
170
- * @param p0
171
- * @param p1
138
+ * @returns blip
172
139
  */
173
- static setGpsFlags(p0, p1) {
174
- inv('0x5DE61C90DDECFA2D', p0, f(p1));
140
+ static removeBlip() {
141
+ const result = inv('0xF2C3C9DA47AAA54A', pvi());
142
+ return result;
175
143
  }
176
- /**
177
- * @param blip
178
- * @param player
179
- */
180
- static setBlipNameToPlayerName(blip, player) {
181
- inv('0x093DD5A31BC2B459', blip, player.handle);
144
+ static clearGpsPlayerWaypoint() {
145
+ inv('0x08FDC6F796E350D1');
182
146
  }
183
147
  /**
184
148
  * @param blip
185
- * @param blipType
186
- * @param blipHash
187
- */
188
- static setBlipFlashTimer(blip, blipType, blipHash) {
189
- inv('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
190
- }
191
- /**
192
149
  * @param hash
150
+ * @param p2
193
151
  */
194
- static resetMinimapFow(hash) {
195
- inv('0xEB3CB3386C775D72', _h(hash));
196
- }
197
- /**
198
- * @param colorNameHash
199
- * @param onFoot
200
- * @param inVehicle
201
- */
202
- static startGpsMultiRoute(colorNameHash, onFoot, inVehicle) {
203
- inv('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
204
- }
205
- /**
206
- * will add a blip icon to the entity lockon prompt that you specify
207
- *
208
- * @param entity
209
- * @param blipIcon
210
- */
211
- static setBlipIconToLockonEntityPrompt(entity, blipIcon) {
212
- inv('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
152
+ static setBlipSprite(blip, hash, p2) {
153
+ inv('0x74F74D3207ED525C', blip, _h(hash), p2);
213
154
  }
214
155
  /**
215
- * Returns the Blip handle of given Entity.
156
+ * checks if the entity lockon prompt contains an icon
216
157
  *
217
158
  * @param entity
159
+ * @param blipId
218
160
  * @returns
219
161
  */
220
- static getBlipFromEntity(entity) {
221
- return inv('0x6D2C41A8BD6D6FD0', entity.handle, rai());
222
- }
223
- /**
224
- * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
225
- */
226
- static clearPausemapCoords() {
227
- inv('0x7C9F4CDF402CA82A');
162
+ static isBlipIconOnLockonEntityPrompt(entity, blipId) {
163
+ return inv('0x3CB8859F04763C78', entity.handle, blipId);
228
164
  }
229
165
  /**
230
- * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
231
- * Hash p1 seems to be unused, always 0
232
- *
233
166
  * @param toggle
234
- * @param p1
235
167
  */
236
- static setFowUpdatePlayerOverride(toggle, p1) {
237
- inv('0x63E7279D04160477', toggle, _h(p1));
168
+ static allowSonarBlips(toggle) {
169
+ inv('0x6E6E64788C07D2E0', toggle);
238
170
  }
239
- /**
240
- * @param blip
241
- * @returns
242
- */
243
- static isBlipOnMinimap(blip) {
244
- return inv('0x46534526B9CD2D17', blip, rai());
171
+ static showActivePointsOfInterest() {
172
+ inv('0x3FBB838AEA30C1D8');
245
173
  }
246
174
  /**
247
- * https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
248
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
249
- *
250
- * @param blip
251
- * @param modifierHash
252
175
  * @returns
253
176
  */
254
- static blipAddModifier(blip, modifierHash) {
255
- return inv('0x662D364ABF16DE2F', blip, _h(modifierHash));
256
- }
257
- /**
258
- * Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
259
- */
260
- static clearGpsMultiRoute() {
261
- inv('0x9E0AB9AAEE87CE28');
177
+ static isWaypointActive() {
178
+ return inv('0x202B1BBFC6AB5EE4', rai());
262
179
  }
263
180
  /**
264
181
  * @param blip
265
- * @returns
266
- */
267
- static doesBlipExist(blip) {
268
- return inv('0xCD82FA174080B3B1', blip, rai());
269
- }
270
- /**
271
- * @param discoveryHash
272
- */
273
- static discoverySetEnabled(discoveryHash) {
274
- inv('0xDA98246C7A3C2189', _h(discoveryHash));
275
- }
276
- /**
277
- * @param styleHash
278
- * @returns
182
+ * @returns p1; p2
279
183
  */
280
- static blipAddForStyle(styleHash) {
281
- return inv('0x3E593DF9C2962EC6', _h(styleHash), rai());
184
+ static setBlipFlashes(blip) {
185
+ const result = inv('0x0DF2B55F717DDB10', blip, pvi(), pvi());
186
+ return [result[0], result[1], result[2]];
282
187
  }
283
188
  /**
284
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
285
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
286
- *
287
189
  * @param blipHash
288
- * @param pos
190
+ * @param pickup
289
191
  * @returns
290
192
  */
291
- static blipAddForCoords(blipHash, pos) {
292
- return inv('0x554D9D53F696D002', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), rai());
293
- }
294
- /**
295
- * @param pos
296
- * @param p3
297
- */
298
- static addPointToGpsMultiRoute(pos, p3) {
299
- inv('0x64C59DD6834FA942', f(pos.x), f(pos.y), f(pos.z), p3);
193
+ static blipAddForPickupPlacement(blipHash, pickup) {
194
+ return inv('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
300
195
  }
301
- static setRadarAsExteriorThisFrame() {
302
- inv('0xA8EBBAE986FB5457');
196
+ static hideActivePointsOfInterest() {
197
+ inv('0xA1B4052C2A3DCC1E');
303
198
  }
304
199
  /**
305
- * @param pos
306
- * @param radius
200
+ * @param volume
201
+ * @param p1
307
202
  */
308
- static setPausemapCoordsWithRadius(pos, radius) {
309
- inv('0xE0884C184728C75B', f(pos.x), f(pos.y), f(pos.z), f(radius));
203
+ static setMinimapFowRevealVolume(volume, p1) {
204
+ inv('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
310
205
  }
311
206
  /**
312
- * If Minimap / Radar should be displayed.
207
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
208
+ * Removes any existing modifiers and sets the style.
313
209
  *
314
- * @param toggle
315
- */
316
- static displayRadar(toggle) {
317
- inv('0x1B3DA717B9AFF828', toggle);
318
- }
319
- /**
320
210
  * @param blip
321
- * @param pos
322
- */
323
- static setBlipCoords(blip, pos) {
324
- inv('0x4FF674F5E23D49CE', blip, f(pos.x), f(pos.y), f(pos.z));
325
- }
326
- /**
327
- * @param discoveryHash
328
- */
329
- static discoverRegion(discoveryHash) {
330
- inv('0xD8C7162AB2E2AF45', _h(discoveryHash));
331
- }
332
- /**
333
- * Up to eight coordinates may be revealed per frame
334
- *
335
- * @param pos
336
- * @param p3
337
- */
338
- static setMinimapFowRevealCoordinate(pos, p3) {
339
- inv('0x73348402566ECB6E', f(pos.x), f(pos.y), f(pos.z), _h(p3));
340
- }
341
- static setWaypointOff() {
342
- inv('0xFA8C41E8020D3439');
343
- }
344
- /**
211
+ * @param styleHash
345
212
  * @returns
346
213
  */
347
- static getWaypointCoords() {
348
- return Vector3.fromArray(inv('0x29B30D07C3F7873B', rav()));
214
+ static blipSetStyle(blip, styleHash) {
215
+ return inv('0xEDD964B7984AC291', blip, _h(styleHash));
349
216
  }
350
217
  /**
351
- * @param blip
352
- * @param name
218
+ * @param zoomLevel
353
219
  */
354
- static setBlipName(blip, name) {
355
- inv('0x9CB1A1623062F402', blip, name);
220
+ static setRadarZoom(zoomLevel) {
221
+ inv('0xCAF6489DA2C8DD9E', zoomLevel);
356
222
  }
357
223
  /**
358
- * @param p0
224
+ * @param regionHash
225
+ * @param styleHash
226
+ * @returns
359
227
  */
360
- static N_0xD3F58E9316B7FC2A(p0) {
361
- inv('0xD3F58E9316B7FC2A', p0);
228
+ static isRegionHighlightedWithStyle(regionHash, styleHash) {
229
+ return inv('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
362
230
  }
363
231
  /**
364
- * @param blip
365
- * @returns
232
+ * Unlike `GET_WAYPOINT_COORDS - 0x29B30D07C3F7873B`, which returns a single value, this native returns the x and y coordinates of the waypoint separately as floats from pointer. To retrieve each coordinate, `Citizen.PointerValueFloat()` must be used with this function.
233
+ *
234
+ * @returns x; y
366
235
  */
367
- static isBlipAttachedToAnyEntity(blip) {
368
- return inv('0xE9F676788F8D5E1E', blip);
236
+ static getWaypointPosition() {
237
+ const result = inv('0xF08E42BFA46BDFF8', pvf(), pvf());
238
+ return [result[0], result[1], result[2]];
369
239
  }
370
240
  /**
371
241
  * @param blip
@@ -527,115 +397,245 @@ export class Map {
527
397
  inv('0xD38744167B2FA257', blip, f(scale));
528
398
  }
529
399
  /**
530
- * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
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.
401
+ *
402
+ * @returns
403
+ */
404
+ static isGpsRouteOnRoad() {
405
+ return inv('0xF47A1EB2A538A3A3');
406
+ }
407
+ /**
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
419
+ */
420
+ static addPropToMinimap(minimapProp, pos, rotation, variation) {
421
+ inv('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
422
+ }
423
+ /**
424
+ * @param minimapProp
425
+ */
426
+ static removePropFromMinimap(minimapProp) {
427
+ inv('0xE057FEA9A22EB3EE', _h(minimapProp));
428
+ }
429
+ /**
430
+ * will remove the blip icon from the entity lockon prompt, use 0 for p1
531
431
  *
532
432
  * @param entity
533
- * @param blipId
433
+ * @param p1
534
434
  */
535
- static setEntityBlipIconToLockonEntityPrompt(entity, blipId) {
536
- inv('0x97F6F158CC5B5CA2', entity.handle, blipId);
435
+ static clearBlipIconFromLockonEntityPrompt(entity, p1) {
436
+ inv('0x44813684F72B563C', entity.handle, p1);
537
437
  }
538
438
  /**
539
- * @returns blip
439
+ * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
440
+ *
441
+ * @param p0
442
+ * @param p1
540
443
  */
541
- static removeBlip() {
542
- const result = inv('0xF2C3C9DA47AAA54A', pvi());
543
- return result;
444
+ static setGpsFlags(p0, p1) {
445
+ inv('0x5DE61C90DDECFA2D', p0, f(p1));
544
446
  }
545
- static clearGpsPlayerWaypoint() {
546
- inv('0x08FDC6F796E350D1');
447
+ /**
448
+ * @param blip
449
+ * @param player
450
+ */
451
+ static setBlipNameToPlayerName(blip, player) {
452
+ inv('0x093DD5A31BC2B459', blip, player.handle);
547
453
  }
548
454
  /**
549
455
  * @param blip
456
+ * @param blipType
457
+ * @param blipHash
458
+ */
459
+ static setBlipFlashTimer(blip, blipType, blipHash) {
460
+ inv('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
461
+ }
462
+ /**
550
463
  * @param hash
551
- * @param p2
552
464
  */
553
- static setBlipSprite(blip, hash, p2) {
554
- inv('0x74F74D3207ED525C', blip, _h(hash), p2);
465
+ static resetMinimapFow(hash) {
466
+ inv('0xEB3CB3386C775D72', _h(hash));
555
467
  }
556
468
  /**
557
- * checks if the entity lockon prompt contains an icon
469
+ * @param colorNameHash
470
+ * @param onFoot
471
+ * @param inVehicle
472
+ */
473
+ static startGpsMultiRoute(colorNameHash, onFoot, inVehicle) {
474
+ inv('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
475
+ }
476
+ /**
477
+ * will add a blip icon to the entity lockon prompt that you specify
478
+ *
479
+ * @param entity
480
+ * @param blipIcon
481
+ */
482
+ static setBlipIconToLockonEntityPrompt(entity, blipIcon) {
483
+ inv('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
484
+ }
485
+ /**
486
+ * Returns the Blip handle of given Entity.
558
487
  *
559
488
  * @param entity
560
- * @param blipId
561
489
  * @returns
562
490
  */
563
- static isBlipIconOnLockonEntityPrompt(entity, blipId) {
564
- return inv('0x3CB8859F04763C78', entity.handle, blipId);
491
+ static getBlipFromEntity(entity) {
492
+ return inv('0x6D2C41A8BD6D6FD0', entity.handle, rai());
493
+ }
494
+ /**
495
+ * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
496
+ */
497
+ static clearPausemapCoords() {
498
+ inv('0x7C9F4CDF402CA82A');
565
499
  }
566
500
  /**
501
+ * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
502
+ * Hash p1 seems to be unused, always 0
503
+ *
567
504
  * @param toggle
505
+ * @param p1
568
506
  */
569
- static allowSonarBlips(toggle) {
570
- inv('0x6E6E64788C07D2E0', toggle);
507
+ static setFowUpdatePlayerOverride(toggle, p1) {
508
+ inv('0x63E7279D04160477', toggle, _h(p1));
571
509
  }
572
- static showActivePointsOfInterest() {
573
- inv('0x3FBB838AEA30C1D8');
510
+ /**
511
+ * @param blip
512
+ * @returns
513
+ */
514
+ static isBlipOnMinimap(blip) {
515
+ return inv('0x46534526B9CD2D17', blip, rai());
574
516
  }
575
517
  /**
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
520
+ *
521
+ * @param blip
522
+ * @param modifierHash
576
523
  * @returns
577
524
  */
578
- static isWaypointActive() {
579
- return inv('0x202B1BBFC6AB5EE4', rai());
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);
530
+ */
531
+ static clearGpsMultiRoute() {
532
+ inv('0x9E0AB9AAEE87CE28');
580
533
  }
581
534
  /**
582
535
  * @param blip
583
- * @returns p1; p2
536
+ * @returns
584
537
  */
585
- static setBlipFlashes(blip) {
586
- const result = inv('0x0DF2B55F717DDB10', blip, pvi(), pvi());
587
- return [result[0], result[1], result[2]];
538
+ static doesBlipExist(blip) {
539
+ return inv('0xCD82FA174080B3B1', blip, rai());
540
+ }
541
+ /**
542
+ * @param discoveryHash
543
+ */
544
+ static discoverySetEnabled(discoveryHash) {
545
+ inv('0xDA98246C7A3C2189', _h(discoveryHash));
588
546
  }
589
547
  /**
548
+ * @param styleHash
549
+ * @returns
550
+ */
551
+ static blipAddForStyle(styleHash) {
552
+ return inv('0x3E593DF9C2962EC6', _h(styleHash), rai());
553
+ }
554
+ /**
555
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
556
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
557
+ *
590
558
  * @param blipHash
591
- * @param pickup
559
+ * @param pos
592
560
  * @returns
593
561
  */
594
- static blipAddForPickupPlacement(blipHash, pickup) {
595
- return inv('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
562
+ static blipAddForCoords(blipHash, pos) {
563
+ return inv('0x554D9D53F696D002', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), rai());
596
564
  }
597
- static hideActivePointsOfInterest() {
598
- inv('0xA1B4052C2A3DCC1E');
565
+ /**
566
+ * @param pos
567
+ * @param p3
568
+ */
569
+ static addPointToGpsMultiRoute(pos, p3) {
570
+ inv('0x64C59DD6834FA942', f(pos.x), f(pos.y), f(pos.z), p3);
571
+ }
572
+ static setRadarAsExteriorThisFrame() {
573
+ inv('0xA8EBBAE986FB5457');
599
574
  }
600
575
  /**
601
- * @param volume
602
- * @param p1
576
+ * @param pos
577
+ * @param radius
603
578
  */
604
- static setMinimapFowRevealVolume(volume, p1) {
605
- inv('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
579
+ static setPausemapCoordsWithRadius(pos, radius) {
580
+ inv('0xE0884C184728C75B', f(pos.x), f(pos.y), f(pos.z), f(radius));
606
581
  }
607
582
  /**
608
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
609
- * Removes any existing modifiers and sets the style.
583
+ * If Minimap / Radar should be displayed.
610
584
  *
585
+ * @param toggle
586
+ */
587
+ static displayRadar(toggle) {
588
+ inv('0x1B3DA717B9AFF828', toggle);
589
+ }
590
+ /**
611
591
  * @param blip
612
- * @param styleHash
613
- * @returns
592
+ * @param pos
614
593
  */
615
- static blipSetStyle(blip, styleHash) {
616
- return inv('0xEDD964B7984AC291', blip, _h(styleHash));
594
+ static setBlipCoords(blip, pos) {
595
+ inv('0x4FF674F5E23D49CE', blip, f(pos.x), f(pos.y), f(pos.z));
617
596
  }
618
597
  /**
619
- * @param zoomLevel
598
+ * @param discoveryHash
620
599
  */
621
- static setRadarZoom(zoomLevel) {
622
- inv('0xCAF6489DA2C8DD9E', zoomLevel);
600
+ static discoverRegion(discoveryHash) {
601
+ inv('0xD8C7162AB2E2AF45', _h(discoveryHash));
602
+ }
603
+ /**
604
+ * Up to eight coordinates may be revealed per frame
605
+ *
606
+ * @param pos
607
+ * @param p3
608
+ */
609
+ static setMinimapFowRevealCoordinate(pos, p3) {
610
+ inv('0x73348402566ECB6E', f(pos.x), f(pos.y), f(pos.z), _h(p3));
611
+ }
612
+ static setWaypointOff() {
613
+ inv('0xFA8C41E8020D3439');
623
614
  }
624
615
  /**
625
- * @param regionHash
626
- * @param styleHash
627
616
  * @returns
628
617
  */
629
- static isRegionHighlightedWithStyle(regionHash, styleHash) {
630
- return inv('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
618
+ static getWaypointCoords() {
619
+ return Vector3.fromArray(inv('0x29B30D07C3F7873B', rav()));
631
620
  }
632
621
  /**
633
- * Unlike `GET_WAYPOINT_COORDS - 0x29B30D07C3F7873B`, which returns a single value, this native returns the x and y coordinates of the waypoint separately as floats from pointer. To retrieve each coordinate, `Citizen.PointerValueFloat()` must be used with this function.
634
- *
635
- * @returns x; y
622
+ * @param blip
623
+ * @param name
636
624
  */
637
- static getWaypointPosition() {
638
- const result = inv('0xF08E42BFA46BDFF8', pvf(), pvf());
639
- return [result[0], result[1], result[2]];
625
+ static setBlipName(blip, name) {
626
+ inv('0x9CB1A1623062F402', blip, name);
627
+ }
628
+ /**
629
+ * @param p0
630
+ */
631
+ static N_0xD3F58E9316B7FC2A(p0) {
632
+ inv('0xD3F58E9316B7FC2A', p0);
633
+ }
634
+ /**
635
+ * @param blip
636
+ * @returns
637
+ */
638
+ static isBlipAttachedToAnyEntity(blip) {
639
+ return inv('0xE9F676788F8D5E1E', blip);
640
640
  }
641
641
  }