@nativewrappers/redm-codegen 0.0.4 → 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 (317) hide show
  1. package/dist/classes/AnimScene.d.ts +109 -109
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +158 -158
  4. package/dist/classes/BaseModel.d.ts +34 -34
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +53 -53
  7. package/dist/classes/BaseTask.d.ts +36 -36
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +44 -44
  10. package/dist/classes/Cam.d.ts +91 -91
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +124 -124
  13. package/dist/classes/Entity.d.ts +507 -502
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +723 -714
  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/ItemSet.d.ts +2 -2
  20. package/dist/classes/ItemSet.d.ts.map +1 -1
  21. package/dist/classes/ItemSet.js +3 -3
  22. package/dist/classes/Ped.d.ts +286 -286
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +425 -425
  25. package/dist/classes/PedModel.d.ts +1 -1
  26. package/dist/classes/PedModel.d.ts.map +1 -1
  27. package/dist/classes/PedModel.js +2 -2
  28. package/dist/classes/PedTask.d.ts +770 -770
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +985 -985
  31. package/dist/classes/PersChar.d.ts +11 -11
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +23 -23
  34. package/dist/classes/Pickup.d.ts +6 -6
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +12 -12
  37. package/dist/classes/Player.d.ts +237 -233
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +309 -303
  40. package/dist/classes/Prop.d.ts +126 -126
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +180 -180
  43. package/dist/classes/PropSet.d.ts +16 -16
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +22 -22
  46. package/dist/classes/Vehicle.d.ts +122 -122
  47. package/dist/classes/Vehicle.d.ts.map +1 -1
  48. package/dist/classes/Vehicle.js +147 -147
  49. package/dist/classes/VehicleModel.d.ts +1 -1
  50. package/dist/classes/VehicleModel.d.ts.map +1 -1
  51. package/dist/classes/VehicleModel.js +2 -2
  52. package/dist/classes/VehicleTask.d.ts +17 -17
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +24 -24
  55. package/dist/classes/Volume.d.ts +44 -44
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +58 -58
  58. package/dist/classes/Weapon.d.ts +243 -243
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +339 -339
  61. package/dist/namespaces/Aicoverpoint.d.ts +23 -23
  62. package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
  63. package/dist/namespaces/Aicoverpoint.js +35 -35
  64. package/dist/namespaces/Aitransport.d.ts +78 -78
  65. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  66. package/dist/namespaces/Aitransport.js +95 -95
  67. package/dist/namespaces/Animscene.d.ts +37 -37
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +51 -51
  70. package/dist/namespaces/Audio.d.ts +395 -395
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +530 -530
  73. package/dist/namespaces/Bounty.d.ts +23 -23
  74. package/dist/namespaces/Bounty.d.ts.map +1 -1
  75. package/dist/namespaces/Bounty.js +40 -40
  76. package/dist/namespaces/Brain.d.ts +15 -15
  77. package/dist/namespaces/Brain.d.ts.map +1 -1
  78. package/dist/namespaces/Brain.js +20 -20
  79. package/dist/namespaces/CamStatics.d.ts +483 -483
  80. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  81. package/dist/namespaces/CamStatics.js +693 -693
  82. package/dist/namespaces/Clock.d.ts +51 -51
  83. package/dist/namespaces/Clock.d.ts.map +1 -1
  84. package/dist/namespaces/Clock.js +73 -73
  85. package/dist/namespaces/Collection.d.ts +6 -6
  86. package/dist/namespaces/Collection.d.ts.map +1 -1
  87. package/dist/namespaces/Collection.js +11 -11
  88. package/dist/namespaces/Compapp.js +1 -1
  89. package/dist/namespaces/Compendium.d.ts +58 -58
  90. package/dist/namespaces/Compendium.d.ts.map +1 -1
  91. package/dist/namespaces/Compendium.js +83 -83
  92. package/dist/namespaces/Crashlog.js +9 -9
  93. package/dist/namespaces/Crew.d.ts +9 -9
  94. package/dist/namespaces/Crew.d.ts.map +1 -1
  95. package/dist/namespaces/Crew.js +18 -18
  96. package/dist/namespaces/Databinding.d.ts +146 -146
  97. package/dist/namespaces/Databinding.d.ts.map +1 -1
  98. package/dist/namespaces/Databinding.js +218 -218
  99. package/dist/namespaces/Datafile.js +4 -4
  100. package/dist/namespaces/Decorator.d.ts +19 -19
  101. package/dist/namespaces/Decorator.d.ts.map +1 -1
  102. package/dist/namespaces/Decorator.js +34 -34
  103. package/dist/namespaces/Dlc.js +2 -2
  104. package/dist/namespaces/EntityStatics.d.ts +186 -186
  105. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  106. package/dist/namespaces/EntityStatics.js +249 -249
  107. package/dist/namespaces/Event.js +4 -4
  108. package/dist/namespaces/Fire.d.ts +89 -89
  109. package/dist/namespaces/Fire.d.ts.map +1 -1
  110. package/dist/namespaces/Fire.js +115 -115
  111. package/dist/namespaces/Flock.js +2 -2
  112. package/dist/namespaces/Gang.js +2 -2
  113. package/dist/namespaces/GoogleAnalytics.js +2 -2
  114. package/dist/namespaces/Graphics.d.ts +776 -776
  115. package/dist/namespaces/Graphics.d.ts.map +1 -1
  116. package/dist/namespaces/Graphics.js +1120 -1120
  117. package/dist/namespaces/Hud.d.ts +497 -497
  118. package/dist/namespaces/Hud.d.ts.map +1 -1
  119. package/dist/namespaces/Hud.js +748 -748
  120. package/dist/namespaces/Ik.js +1 -1
  121. package/dist/namespaces/Interaction.js +3 -3
  122. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  123. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  124. package/dist/namespaces/InteriorStatics.js +57 -57
  125. package/dist/namespaces/Inventory.d.ts +205 -205
  126. package/dist/namespaces/Inventory.d.ts.map +1 -1
  127. package/dist/namespaces/Inventory.js +340 -340
  128. package/dist/namespaces/Itemdatabase.d.ts +78 -78
  129. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  130. package/dist/namespaces/Itemdatabase.js +109 -109
  131. package/dist/namespaces/Itemset.js +2 -2
  132. package/dist/namespaces/Law.d.ts +1 -1
  133. package/dist/namespaces/Law.d.ts.map +1 -1
  134. package/dist/namespaces/Law.js +19 -19
  135. package/dist/namespaces/Localization.js +1 -1
  136. package/dist/namespaces/Map.d.ts +156 -156
  137. package/dist/namespaces/Map.d.ts.map +1 -1
  138. package/dist/namespaces/Map.js +209 -209
  139. package/dist/namespaces/Minigame.d.ts +66 -66
  140. package/dist/namespaces/Minigame.d.ts.map +1 -1
  141. package/dist/namespaces/Minigame.js +111 -111
  142. package/dist/namespaces/Misc.d.ts +3 -3
  143. package/dist/namespaces/Misc.d.ts.map +1 -1
  144. package/dist/namespaces/Misc.js +35 -35
  145. package/dist/namespaces/Missiondata.js +1 -1
  146. package/dist/namespaces/Money.js +3 -3
  147. package/dist/namespaces/Netshopping.d.ts +58 -58
  148. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  149. package/dist/namespaces/Netshopping.js +89 -89
  150. package/dist/namespaces/Network.d.ts +1199 -1199
  151. package/dist/namespaces/Network.d.ts.map +1 -1
  152. package/dist/namespaces/Network.js +1650 -1650
  153. package/dist/namespaces/Object.d.ts +262 -262
  154. package/dist/namespaces/Object.d.ts.map +1 -1
  155. package/dist/namespaces/Object.js +367 -367
  156. package/dist/namespaces/Pad.d.ts +102 -102
  157. package/dist/namespaces/Pad.d.ts.map +1 -1
  158. package/dist/namespaces/Pad.js +141 -141
  159. package/dist/namespaces/Pathfind.js +10 -10
  160. package/dist/namespaces/PedStatics.d.ts +2 -2
  161. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  162. package/dist/namespaces/PedStatics.js +10 -10
  163. package/dist/namespaces/Perschar.d.ts +42 -42
  164. package/dist/namespaces/Perschar.d.ts.map +1 -1
  165. package/dist/namespaces/Perschar.js +59 -59
  166. package/dist/namespaces/Physics.d.ts +37 -37
  167. package/dist/namespaces/Physics.d.ts.map +1 -1
  168. package/dist/namespaces/Physics.js +54 -54
  169. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  170. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  171. package/dist/namespaces/PlayerStatics.js +104 -104
  172. package/dist/namespaces/Population.d.ts +86 -86
  173. package/dist/namespaces/Population.d.ts.map +1 -1
  174. package/dist/namespaces/Population.js +116 -116
  175. package/dist/namespaces/Posse.d.ts +48 -48
  176. package/dist/namespaces/Posse.d.ts.map +1 -1
  177. package/dist/namespaces/Posse.js +78 -78
  178. package/dist/namespaces/Propset.d.ts +59 -59
  179. package/dist/namespaces/Propset.d.ts.map +1 -1
  180. package/dist/namespaces/Propset.js +81 -81
  181. package/dist/namespaces/Replay.d.ts +1 -1
  182. package/dist/namespaces/Replay.d.ts.map +1 -1
  183. package/dist/namespaces/Replay.js +2 -2
  184. package/dist/namespaces/Scripts.d.ts +1 -1
  185. package/dist/namespaces/Scripts.d.ts.map +1 -1
  186. package/dist/namespaces/Scripts.js +12 -12
  187. package/dist/namespaces/Socialclub.js +8 -8
  188. package/dist/namespaces/Socialclubfeed.js +1 -1
  189. package/dist/namespaces/Spactionproxy.js +4 -4
  190. package/dist/namespaces/Stats.d.ts +203 -203
  191. package/dist/namespaces/Stats.d.ts.map +1 -1
  192. package/dist/namespaces/Stats.js +294 -294
  193. package/dist/namespaces/Streaming.d.ts +128 -128
  194. package/dist/namespaces/Streaming.d.ts.map +1 -1
  195. package/dist/namespaces/Streaming.js +202 -202
  196. package/dist/namespaces/Task.d.ts +366 -366
  197. package/dist/namespaces/Task.d.ts.map +1 -1
  198. package/dist/namespaces/Task.js +517 -517
  199. package/dist/namespaces/Telemetry.d.ts +83 -83
  200. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  201. package/dist/namespaces/Telemetry.js +111 -111
  202. package/dist/namespaces/Txd.js +1 -1
  203. package/dist/namespaces/Uiapps.d.ts +25 -25
  204. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  205. package/dist/namespaces/Uiapps.js +36 -36
  206. package/dist/namespaces/Uievents.js +1 -1
  207. package/dist/namespaces/Uifeed.js +1 -1
  208. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  209. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  210. package/dist/namespaces/Uistickyfeed.js +21 -21
  211. package/dist/namespaces/Unlock.js +5 -5
  212. package/dist/namespaces/VehicleStatics.js +12 -12
  213. package/dist/namespaces/Voice.js +7 -7
  214. package/dist/namespaces/VolumeStatics.d.ts +99 -99
  215. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  216. package/dist/namespaces/VolumeStatics.js +137 -137
  217. package/dist/namespaces/Water.d.ts +27 -27
  218. package/dist/namespaces/Water.d.ts.map +1 -1
  219. package/dist/namespaces/Water.js +41 -41
  220. package/dist/namespaces/WeaponStatics.d.ts +206 -206
  221. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  222. package/dist/namespaces/WeaponStatics.js +303 -303
  223. package/dist/types/NativeAliases.d.ts +3 -1
  224. package/dist/types/NativeAliases.d.ts.map +1 -1
  225. package/dist/types/NativeAliases.js +3 -1
  226. package/package.json +1 -1
  227. package/src/classes/AnimScene.ts +164 -164
  228. package/src/classes/BaseModel.ts +60 -60
  229. package/src/classes/BaseTask.ts +46 -46
  230. package/src/classes/Cam.ts +136 -136
  231. package/src/classes/Entity.ts +738 -727
  232. package/src/classes/Interior.ts +43 -43
  233. package/src/classes/ItemSet.ts +3 -3
  234. package/src/classes/Ped.ts +432 -432
  235. package/src/classes/PedModel.ts +2 -2
  236. package/src/classes/PedTask.ts +1023 -1023
  237. package/src/classes/PersChar.ts +28 -28
  238. package/src/classes/Pickup.ts +13 -13
  239. package/src/classes/Player.ts +326 -319
  240. package/src/classes/Prop.ts +185 -185
  241. package/src/classes/PropSet.ts +25 -25
  242. package/src/classes/Vehicle.ts +147 -147
  243. package/src/classes/VehicleModel.ts +2 -2
  244. package/src/classes/VehicleTask.ts +27 -27
  245. package/src/classes/Volume.ts +62 -62
  246. package/src/classes/Weapon.ts +358 -358
  247. package/src/namespaces/Aicoverpoint.ts +40 -40
  248. package/src/namespaces/Aitransport.ts +104 -104
  249. package/src/namespaces/Animscene.ts +55 -55
  250. package/src/namespaces/Audio.ts +565 -565
  251. package/src/namespaces/Bounty.ts +46 -46
  252. package/src/namespaces/Brain.ts +22 -22
  253. package/src/namespaces/CamStatics.ts +706 -706
  254. package/src/namespaces/Clock.ts +82 -82
  255. package/src/namespaces/Collection.ts +12 -12
  256. package/src/namespaces/Compapp.ts +1 -1
  257. package/src/namespaces/Compendium.ts +94 -94
  258. package/src/namespaces/Crashlog.ts +9 -9
  259. package/src/namespaces/Crew.ts +20 -20
  260. package/src/namespaces/Databinding.ts +222 -222
  261. package/src/namespaces/Datafile.ts +4 -4
  262. package/src/namespaces/Decorator.ts +37 -37
  263. package/src/namespaces/Dlc.ts +2 -2
  264. package/src/namespaces/EntityStatics.ts +259 -259
  265. package/src/namespaces/Event.ts +4 -4
  266. package/src/namespaces/Fire.ts +127 -127
  267. package/src/namespaces/Flock.ts +2 -2
  268. package/src/namespaces/Gang.ts +2 -2
  269. package/src/namespaces/GoogleAnalytics.ts +2 -2
  270. package/src/namespaces/Graphics.ts +1081 -1081
  271. package/src/namespaces/Hud.ts +767 -767
  272. package/src/namespaces/Ik.ts +1 -1
  273. package/src/namespaces/Interaction.ts +3 -3
  274. package/src/namespaces/InteriorStatics.ts +65 -65
  275. package/src/namespaces/Inventory.ts +352 -352
  276. package/src/namespaces/Itemdatabase.ts +121 -121
  277. package/src/namespaces/Itemset.ts +2 -2
  278. package/src/namespaces/Law.ts +20 -20
  279. package/src/namespaces/Localization.ts +1 -1
  280. package/src/namespaces/Map.ts +217 -217
  281. package/src/namespaces/Minigame.ts +119 -119
  282. package/src/namespaces/Misc.ts +38 -38
  283. package/src/namespaces/Missiondata.ts +1 -1
  284. package/src/namespaces/Money.ts +3 -3
  285. package/src/namespaces/Netshopping.ts +99 -99
  286. package/src/namespaces/Network.ts +1738 -1738
  287. package/src/namespaces/Object.ts +370 -370
  288. package/src/namespaces/Pad.ts +155 -155
  289. package/src/namespaces/Pathfind.ts +10 -10
  290. package/src/namespaces/PedStatics.ts +12 -12
  291. package/src/namespaces/Perschar.ts +67 -67
  292. package/src/namespaces/Physics.ts +62 -62
  293. package/src/namespaces/PlayerStatics.ts +112 -112
  294. package/src/namespaces/Population.ts +131 -131
  295. package/src/namespaces/Posse.ts +81 -81
  296. package/src/namespaces/Propset.ts +92 -92
  297. package/src/namespaces/Replay.ts +3 -3
  298. package/src/namespaces/Scripts.ts +13 -13
  299. package/src/namespaces/Socialclub.ts +8 -8
  300. package/src/namespaces/Socialclubfeed.ts +1 -1
  301. package/src/namespaces/Spactionproxy.ts +4 -4
  302. package/src/namespaces/Stats.ts +296 -296
  303. package/src/namespaces/Streaming.ts +236 -236
  304. package/src/namespaces/Task.ts +583 -583
  305. package/src/namespaces/Telemetry.ts +125 -125
  306. package/src/namespaces/Txd.ts +1 -1
  307. package/src/namespaces/Uiapps.ts +43 -43
  308. package/src/namespaces/Uievents.ts +1 -1
  309. package/src/namespaces/Uifeed.ts +1 -1
  310. package/src/namespaces/Uistickyfeed.ts +23 -23
  311. package/src/namespaces/Unlock.ts +5 -5
  312. package/src/namespaces/VehicleStatics.ts +12 -12
  313. package/src/namespaces/Voice.ts +7 -7
  314. package/src/namespaces/VolumeStatics.ts +143 -143
  315. package/src/namespaces/Water.ts +47 -47
  316. package/src/namespaces/WeaponStatics.ts +311 -311
  317. package/src/types/NativeAliases.ts +6 -1
@@ -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
  /**
@@ -208,7 +295,7 @@ export class Map {
208
295
  * @returns
209
296
  */
210
297
  static isWaypointActive(): boolean {
211
- return inv<boolean>('0x202B1BBFC6AB5EE4', rai());
298
+ return !!inv<boolean>('0x202B1BBFC6AB5EE4', rai());
212
299
  }
213
300
 
214
301
  /**
@@ -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
  /**
@@ -615,7 +615,7 @@ export class Map {
615
615
  * @returns
616
616
  */
617
617
  static doesBlipExist(blip: number): boolean {
618
- return inv<boolean>('0xCD82FA174080B3B1', blip, rai());
618
+ return !!inv<boolean>('0xCD82FA174080B3B1', blip, rai());
619
619
  }
620
620
 
621
621
  /**