@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
@@ -152,277 +152,131 @@ export class Map {
152
152
  }
153
153
 
154
154
  /**
155
- * 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.
156
- *
157
- * @returns
158
- */
159
- static isGpsRouteOnRoad(): any {
160
- return inv<number>('0xF47A1EB2A538A3A3');
161
- }
162
-
163
- /**
164
- * list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
165
- * variations parameter are the interior locations you see on the map like these bellow
166
- * variation 0 https://i.imgur.com/jkLhn3Z.png
167
- * variation 2 https://i.imgur.com/eKV0Tcm.png
168
- * variation 4 https://i.imgur.com/rjwOgEH.png
169
- * there are more and you can find them in the decompiles
170
- *
171
- * @param minimapProp
172
- * @param pos
173
- * @param rotation
174
- * @param variation
175
- */
176
- static addPropToMinimap(minimapProp: string | number, pos: Vector2, rotation: number, variation: number): void {
177
- inv<void>('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
178
- }
179
-
180
- /**
181
- * @param minimapProp
182
- */
183
- static removePropFromMinimap(minimapProp: string | number): void {
184
- inv<void>('0xE057FEA9A22EB3EE', _h(minimapProp));
185
- }
186
-
187
- /**
188
- * will remove the blip icon from the entity lockon prompt, use 0 for p1
155
+ * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
189
156
  *
190
157
  * @param entity
191
- * @param p1
158
+ * @param blipId
192
159
  */
193
- static clearBlipIconFromLockonEntityPrompt(entity: Entity, p1: number): void {
194
- inv<void>('0x44813684F72B563C', entity.handle, p1);
160
+ static setEntityBlipIconToLockonEntityPrompt(entity: Entity, blipId: number): void {
161
+ inv<void>('0x97F6F158CC5B5CA2', entity.handle, blipId);
195
162
  }
196
163
 
197
164
  /**
198
- * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
199
- *
200
- * @param p0
201
- * @param p1
165
+ * @returns blip
202
166
  */
203
- static setGpsFlags(p0: number, p1: number): void {
204
- inv<void>('0x5DE61C90DDECFA2D', p0, f(p1));
167
+ static removeBlip(): Blip | null {
168
+ const result = inv<number>('0xF2C3C9DA47AAA54A', pvi());
169
+ return result;
205
170
  }
206
171
 
207
- /**
208
- * @param blip
209
- * @param player
210
- */
211
- static setBlipNameToPlayerName(blip: number, player: Player): void {
212
- inv<void>('0x093DD5A31BC2B459', blip, player.handle);
172
+ static clearGpsPlayerWaypoint(): void {
173
+ inv<void>('0x08FDC6F796E350D1');
213
174
  }
214
175
 
215
176
  /**
216
177
  * @param blip
217
- * @param blipType
218
- * @param blipHash
219
- */
220
- static setBlipFlashTimer(blip: number, blipType: number, blipHash: string | number): void {
221
- inv<void>('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
222
- }
223
-
224
- /**
225
178
  * @param hash
179
+ * @param p2
226
180
  */
227
- static resetMinimapFow(hash: string | number): void {
228
- inv<void>('0xEB3CB3386C775D72', _h(hash));
229
- }
230
-
231
- /**
232
- * @param colorNameHash
233
- * @param onFoot
234
- * @param inVehicle
235
- */
236
- static startGpsMultiRoute(colorNameHash: string | number, onFoot: boolean, inVehicle: boolean): void {
237
- inv<void>('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
238
- }
239
-
240
- /**
241
- * will add a blip icon to the entity lockon prompt that you specify
242
- *
243
- * @param entity
244
- * @param blipIcon
245
- */
246
- static setBlipIconToLockonEntityPrompt(entity: Entity, blipIcon: string | number): void {
247
- inv<void>('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
181
+ static setBlipSprite(blip: number, hash: string | number, p2: boolean): void {
182
+ inv<void>('0x74F74D3207ED525C', blip, _h(hash), p2);
248
183
  }
249
184
 
250
185
  /**
251
- * Returns the Blip handle of given Entity.
186
+ * checks if the entity lockon prompt contains an icon
252
187
  *
253
188
  * @param entity
189
+ * @param blipId
254
190
  * @returns
255
191
  */
256
- static getBlipFromEntity(entity: Entity): number {
257
- return inv<number>('0x6D2C41A8BD6D6FD0', entity.handle, rai());
258
- }
259
-
260
- /**
261
- * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
262
- */
263
- static clearPausemapCoords(): void {
264
- inv<void>('0x7C9F4CDF402CA82A');
192
+ static isBlipIconOnLockonEntityPrompt(entity: Entity, blipId: number): any {
193
+ return inv<number>('0x3CB8859F04763C78', entity.handle, blipId);
265
194
  }
266
195
 
267
196
  /**
268
- * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
269
- * Hash p1 seems to be unused, always 0
270
- *
271
197
  * @param toggle
272
- * @param p1
273
198
  */
274
- static setFowUpdatePlayerOverride(toggle: boolean, p1: string | number): void {
275
- inv<void>('0x63E7279D04160477', toggle, _h(p1));
199
+ static allowSonarBlips(toggle: boolean): void {
200
+ inv<void>('0x6E6E64788C07D2E0', toggle);
276
201
  }
277
202
 
278
- /**
279
- * @param blip
280
- * @returns
281
- */
282
- static isBlipOnMinimap(blip: number): boolean {
283
- return inv<boolean>('0x46534526B9CD2D17', blip, rai());
203
+ static showActivePointsOfInterest(): void {
204
+ inv<void>('0x3FBB838AEA30C1D8');
284
205
  }
285
206
 
286
207
  /**
287
- * https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
288
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
289
- *
290
- * @param blip
291
- * @param modifierHash
292
208
  * @returns
293
209
  */
294
- static blipAddModifier(blip: number, modifierHash: string | number): any {
295
- return inv<number>('0x662D364ABF16DE2F', blip, _h(modifierHash));
296
- }
297
-
298
- /**
299
- * Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
300
- */
301
- static clearGpsMultiRoute(): void {
302
- inv<void>('0x9E0AB9AAEE87CE28');
210
+ static isWaypointActive(): boolean {
211
+ return inv<boolean>('0x202B1BBFC6AB5EE4', rai());
303
212
  }
304
213
 
305
214
  /**
306
215
  * @param blip
307
- * @returns
308
- */
309
- static doesBlipExist(blip: number): boolean {
310
- return inv<boolean>('0xCD82FA174080B3B1', blip, rai());
311
- }
312
-
313
- /**
314
- * @param discoveryHash
315
- */
316
- static discoverySetEnabled(discoveryHash: string | number): void {
317
- inv<void>('0xDA98246C7A3C2189', _h(discoveryHash));
318
- }
319
-
320
- /**
321
- * @param styleHash
322
- * @returns
216
+ * @returns p1; p2
323
217
  */
324
- static blipAddForStyle(styleHash: string | number): number {
325
- return inv<number>('0x3E593DF9C2962EC6', _h(styleHash), rai());
218
+ static setBlipFlashes(blip: number): [any, number, number] {
219
+ const result = inv<[number, number, number]>('0x0DF2B55F717DDB10', blip, pvi(), pvi());
220
+ return [result[0], result[1], result[2]];
326
221
  }
327
222
 
328
223
  /**
329
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
330
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
331
- *
332
224
  * @param blipHash
333
- * @param pos
225
+ * @param pickup
334
226
  * @returns
335
227
  */
336
- static blipAddForCoords(blipHash: string | number, pos: Vector3): number {
337
- return inv<number>('0x554D9D53F696D002', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), rai());
338
- }
339
-
340
- /**
341
- * @param pos
342
- * @param p3
343
- */
344
- static addPointToGpsMultiRoute(pos: Vector3, p3: boolean): void {
345
- inv<void>('0x64C59DD6834FA942', f(pos.x), f(pos.y), f(pos.z), p3);
228
+ static blipAddForPickupPlacement(blipHash: string | number, pickup: Pickup): number {
229
+ return inv<number>('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
346
230
  }
347
231
 
348
- static setRadarAsExteriorThisFrame(): void {
349
- inv<void>('0xA8EBBAE986FB5457');
232
+ static hideActivePointsOfInterest(): void {
233
+ inv<void>('0xA1B4052C2A3DCC1E');
350
234
  }
351
235
 
352
236
  /**
353
- * @param pos
354
- * @param radius
237
+ * @param volume
238
+ * @param p1
355
239
  */
356
- static setPausemapCoordsWithRadius(pos: Vector3, radius: number): void {
357
- inv<void>('0xE0884C184728C75B', f(pos.x), f(pos.y), f(pos.z), f(radius));
240
+ static setMinimapFowRevealVolume(volume: Volume, p1: string | number): void {
241
+ inv<void>('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
358
242
  }
359
243
 
360
244
  /**
361
- * If Minimap / Radar should be displayed.
245
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
246
+ * Removes any existing modifiers and sets the style.
362
247
  *
363
- * @param toggle
364
- */
365
- static displayRadar(toggle: boolean): void {
366
- inv<void>('0x1B3DA717B9AFF828', toggle);
367
- }
368
-
369
- /**
370
248
  * @param blip
371
- * @param pos
372
- */
373
- static setBlipCoords(blip: number, pos: Vector3): void {
374
- inv<void>('0x4FF674F5E23D49CE', blip, f(pos.x), f(pos.y), f(pos.z));
375
- }
376
-
377
- /**
378
- * @param discoveryHash
379
- */
380
- static discoverRegion(discoveryHash: string | number): void {
381
- inv<void>('0xD8C7162AB2E2AF45', _h(discoveryHash));
382
- }
383
-
384
- /**
385
- * Up to eight coordinates may be revealed per frame
386
- *
387
- * @param pos
388
- * @param p3
389
- */
390
- static setMinimapFowRevealCoordinate(pos: Vector3, p3: string | number): void {
391
- inv<void>('0x73348402566ECB6E', f(pos.x), f(pos.y), f(pos.z), _h(p3));
392
- }
393
-
394
- static setWaypointOff(): void {
395
- inv<void>('0xFA8C41E8020D3439');
396
- }
397
-
398
- /**
249
+ * @param styleHash
399
250
  * @returns
400
251
  */
401
- static getWaypointCoords(): Vector3 {
402
- return Vector3.fromArray(inv<number[]>('0x29B30D07C3F7873B', rav()));
252
+ static blipSetStyle(blip: number, styleHash: string | number): any {
253
+ return inv<number>('0xEDD964B7984AC291', blip, _h(styleHash));
403
254
  }
404
255
 
405
256
  /**
406
- * @param blip
407
- * @param name
257
+ * @param zoomLevel
408
258
  */
409
- static setBlipName(blip: number, name: string | null): void {
410
- inv<void>('0x9CB1A1623062F402', blip, name);
259
+ static setRadarZoom(zoomLevel: number): void {
260
+ inv<void>('0xCAF6489DA2C8DD9E', zoomLevel);
411
261
  }
412
262
 
413
263
  /**
414
- * @param p0
264
+ * @param regionHash
265
+ * @param styleHash
266
+ * @returns
415
267
  */
416
- static N_0xD3F58E9316B7FC2A(p0: any): void {
417
- inv<void>('0xD3F58E9316B7FC2A', p0);
268
+ static isRegionHighlightedWithStyle(regionHash: string | number, styleHash: string | number): any {
269
+ return inv<number>('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
418
270
  }
419
271
 
420
272
  /**
421
- * @param blip
422
- * @returns
273
+ * 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.
274
+ *
275
+ * @returns x; y
423
276
  */
424
- static isBlipAttachedToAnyEntity(blip: number): any {
425
- return inv<number>('0xE9F676788F8D5E1E', blip);
277
+ static getWaypointPosition(): [any, number, number] {
278
+ const result = inv<[number, number, number]>('0xF08E42BFA46BDFF8', pvf(), pvf());
279
+ return [result[0], result[1], result[2]];
426
280
  }
427
281
 
428
282
  /**
@@ -606,131 +460,277 @@ export class Map {
606
460
  }
607
461
 
608
462
  /**
609
- * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
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.
464
+ *
465
+ * @returns
466
+ */
467
+ static isGpsRouteOnRoad(): any {
468
+ return inv<number>('0xF47A1EB2A538A3A3');
469
+ }
470
+
471
+ /**
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
483
+ */
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);
486
+ }
487
+
488
+ /**
489
+ * @param minimapProp
490
+ */
491
+ static removePropFromMinimap(minimapProp: string | number): void {
492
+ inv<void>('0xE057FEA9A22EB3EE', _h(minimapProp));
493
+ }
494
+
495
+ /**
496
+ * will remove the blip icon from the entity lockon prompt, use 0 for p1
610
497
  *
611
498
  * @param entity
612
- * @param blipId
499
+ * @param p1
613
500
  */
614
- static setEntityBlipIconToLockonEntityPrompt(entity: Entity, blipId: number): void {
615
- inv<void>('0x97F6F158CC5B5CA2', entity.handle, blipId);
501
+ static clearBlipIconFromLockonEntityPrompt(entity: Entity, p1: number): void {
502
+ inv<void>('0x44813684F72B563C', entity.handle, p1);
616
503
  }
617
504
 
618
505
  /**
619
- * @returns blip
506
+ * https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
507
+ *
508
+ * @param p0
509
+ * @param p1
620
510
  */
621
- static removeBlip(): Blip | null {
622
- const result = inv<number>('0xF2C3C9DA47AAA54A', pvi());
623
- return result;
511
+ static setGpsFlags(p0: number, p1: number): void {
512
+ inv<void>('0x5DE61C90DDECFA2D', p0, f(p1));
624
513
  }
625
514
 
626
- static clearGpsPlayerWaypoint(): void {
627
- inv<void>('0x08FDC6F796E350D1');
515
+ /**
516
+ * @param blip
517
+ * @param player
518
+ */
519
+ static setBlipNameToPlayerName(blip: number, player: Player): void {
520
+ inv<void>('0x093DD5A31BC2B459', blip, player.handle);
628
521
  }
629
522
 
630
523
  /**
631
524
  * @param blip
525
+ * @param blipType
526
+ * @param blipHash
527
+ */
528
+ static setBlipFlashTimer(blip: number, blipType: number, blipHash: string | number): void {
529
+ inv<void>('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
530
+ }
531
+
532
+ /**
632
533
  * @param hash
633
- * @param p2
634
534
  */
635
- static setBlipSprite(blip: number, hash: string | number, p2: boolean): void {
636
- inv<void>('0x74F74D3207ED525C', blip, _h(hash), p2);
535
+ static resetMinimapFow(hash: string | number): void {
536
+ inv<void>('0xEB3CB3386C775D72', _h(hash));
637
537
  }
638
538
 
639
539
  /**
640
- * checks if the entity lockon prompt contains an icon
540
+ * @param colorNameHash
541
+ * @param onFoot
542
+ * @param inVehicle
543
+ */
544
+ static startGpsMultiRoute(colorNameHash: string | number, onFoot: boolean, inVehicle: boolean): void {
545
+ inv<void>('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
546
+ }
547
+
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));
556
+ }
557
+
558
+ /**
559
+ * Returns the Blip handle of given Entity.
641
560
  *
642
561
  * @param entity
643
- * @param blipId
644
562
  * @returns
645
563
  */
646
- static isBlipIconOnLockonEntityPrompt(entity: Entity, blipId: number): any {
647
- return inv<number>('0x3CB8859F04763C78', entity.handle, blipId);
564
+ static getBlipFromEntity(entity: Entity): number {
565
+ return inv<number>('0x6D2C41A8BD6D6FD0', entity.handle, rai());
566
+ }
567
+
568
+ /**
569
+ * Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
570
+ */
571
+ static clearPausemapCoords(): void {
572
+ inv<void>('0x7C9F4CDF402CA82A');
648
573
  }
649
574
 
650
575
  /**
576
+ * Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
577
+ * Hash p1 seems to be unused, always 0
578
+ *
651
579
  * @param toggle
580
+ * @param p1
652
581
  */
653
- static allowSonarBlips(toggle: boolean): void {
654
- inv<void>('0x6E6E64788C07D2E0', toggle);
582
+ static setFowUpdatePlayerOverride(toggle: boolean, p1: string | number): void {
583
+ inv<void>('0x63E7279D04160477', toggle, _h(p1));
655
584
  }
656
585
 
657
- static showActivePointsOfInterest(): void {
658
- inv<void>('0x3FBB838AEA30C1D8');
586
+ /**
587
+ * @param blip
588
+ * @returns
589
+ */
590
+ static isBlipOnMinimap(blip: number): boolean {
591
+ return inv<boolean>('0x46534526B9CD2D17', blip, rai());
659
592
  }
660
593
 
661
594
  /**
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
597
+ *
598
+ * @param blip
599
+ * @param modifierHash
662
600
  * @returns
663
601
  */
664
- static isWaypointActive(): boolean {
665
- return inv<boolean>('0x202B1BBFC6AB5EE4', rai());
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);
608
+ */
609
+ static clearGpsMultiRoute(): void {
610
+ inv<void>('0x9E0AB9AAEE87CE28');
666
611
  }
667
612
 
668
613
  /**
669
614
  * @param blip
670
- * @returns p1; p2
615
+ * @returns
671
616
  */
672
- static setBlipFlashes(blip: number): [any, number, number] {
673
- const result = inv<[number, number, number]>('0x0DF2B55F717DDB10', blip, pvi(), pvi());
674
- return [result[0], result[1], result[2]];
617
+ static doesBlipExist(blip: number): boolean {
618
+ return inv<boolean>('0xCD82FA174080B3B1', blip, rai());
675
619
  }
676
620
 
677
621
  /**
622
+ * @param discoveryHash
623
+ */
624
+ static discoverySetEnabled(discoveryHash: string | number): void {
625
+ inv<void>('0xDA98246C7A3C2189', _h(discoveryHash));
626
+ }
627
+
628
+ /**
629
+ * @param styleHash
630
+ * @returns
631
+ */
632
+ static blipAddForStyle(styleHash: string | number): number {
633
+ return inv<number>('0x3E593DF9C2962EC6', _h(styleHash), rai());
634
+ }
635
+
636
+ /**
637
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
638
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
639
+ *
678
640
  * @param blipHash
679
- * @param pickup
641
+ * @param pos
680
642
  * @returns
681
643
  */
682
- static blipAddForPickupPlacement(blipHash: string | number, pickup: Pickup): number {
683
- return inv<number>('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
644
+ static blipAddForCoords(blipHash: string | number, pos: Vector3): number {
645
+ return inv<number>('0x554D9D53F696D002', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), rai());
684
646
  }
685
647
 
686
- static hideActivePointsOfInterest(): void {
687
- inv<void>('0xA1B4052C2A3DCC1E');
648
+ /**
649
+ * @param pos
650
+ * @param p3
651
+ */
652
+ static addPointToGpsMultiRoute(pos: Vector3, p3: boolean): void {
653
+ inv<void>('0x64C59DD6834FA942', f(pos.x), f(pos.y), f(pos.z), p3);
654
+ }
655
+
656
+ static setRadarAsExteriorThisFrame(): void {
657
+ inv<void>('0xA8EBBAE986FB5457');
688
658
  }
689
659
 
690
660
  /**
691
- * @param volume
692
- * @param p1
661
+ * @param pos
662
+ * @param radius
693
663
  */
694
- static setMinimapFowRevealVolume(volume: Volume, p1: string | number): void {
695
- inv<void>('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
664
+ static setPausemapCoordsWithRadius(pos: Vector3, radius: number): void {
665
+ inv<void>('0xE0884C184728C75B', f(pos.x), f(pos.y), f(pos.z), f(radius));
696
666
  }
697
667
 
698
668
  /**
699
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
700
- * Removes any existing modifiers and sets the style.
669
+ * If Minimap / Radar should be displayed.
701
670
  *
671
+ * @param toggle
672
+ */
673
+ static displayRadar(toggle: boolean): void {
674
+ inv<void>('0x1B3DA717B9AFF828', toggle);
675
+ }
676
+
677
+ /**
702
678
  * @param blip
703
- * @param styleHash
704
- * @returns
679
+ * @param pos
705
680
  */
706
- static blipSetStyle(blip: number, styleHash: string | number): any {
707
- return inv<number>('0xEDD964B7984AC291', blip, _h(styleHash));
681
+ static setBlipCoords(blip: number, pos: Vector3): void {
682
+ inv<void>('0x4FF674F5E23D49CE', blip, f(pos.x), f(pos.y), f(pos.z));
708
683
  }
709
684
 
710
685
  /**
711
- * @param zoomLevel
686
+ * @param discoveryHash
712
687
  */
713
- static setRadarZoom(zoomLevel: number): void {
714
- inv<void>('0xCAF6489DA2C8DD9E', zoomLevel);
688
+ static discoverRegion(discoveryHash: string | number): void {
689
+ inv<void>('0xD8C7162AB2E2AF45', _h(discoveryHash));
690
+ }
691
+
692
+ /**
693
+ * Up to eight coordinates may be revealed per frame
694
+ *
695
+ * @param pos
696
+ * @param p3
697
+ */
698
+ static setMinimapFowRevealCoordinate(pos: Vector3, p3: string | number): void {
699
+ inv<void>('0x73348402566ECB6E', f(pos.x), f(pos.y), f(pos.z), _h(p3));
700
+ }
701
+
702
+ static setWaypointOff(): void {
703
+ inv<void>('0xFA8C41E8020D3439');
715
704
  }
716
705
 
717
706
  /**
718
- * @param regionHash
719
- * @param styleHash
720
707
  * @returns
721
708
  */
722
- static isRegionHighlightedWithStyle(regionHash: string | number, styleHash: string | number): any {
723
- return inv<number>('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
709
+ static getWaypointCoords(): Vector3 {
710
+ return Vector3.fromArray(inv<number[]>('0x29B30D07C3F7873B', rav()));
724
711
  }
725
712
 
726
713
  /**
727
- * 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.
728
- *
729
- * @returns x; y
714
+ * @param blip
715
+ * @param name
730
716
  */
731
- static getWaypointPosition(): [any, number, number] {
732
- const result = inv<[number, number, number]>('0xF08E42BFA46BDFF8', pvf(), pvf());
733
- return [result[0], result[1], result[2]];
717
+ static setBlipName(blip: number, name: string | null): void {
718
+ inv<void>('0x9CB1A1623062F402', blip, name);
719
+ }
720
+
721
+ /**
722
+ * @param p0
723
+ */
724
+ static N_0xD3F58E9316B7FC2A(p0: any): void {
725
+ inv<void>('0xD3F58E9316B7FC2A', p0);
726
+ }
727
+
728
+ /**
729
+ * @param blip
730
+ * @returns
731
+ */
732
+ static isBlipAttachedToAnyEntity(blip: number): any {
733
+ return inv<number>('0xE9F676788F8D5E1E', blip);
734
734
  }
735
735
 
736
736
  }