@nativewrappers/redm-codegen 0.0.2 → 0.0.3

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 (254) hide show
  1. package/dist/classes/AnimScene.d.ts +142 -142
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +203 -203
  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 +34 -34
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +42 -42
  10. package/dist/classes/Cam.d.ts +71 -71
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +102 -102
  13. package/dist/classes/Entity.d.ts +387 -386
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +509 -504
  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 +67 -66
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +80 -75
  22. package/dist/classes/PedTask.d.ts +1518 -1518
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1930 -1930
  25. package/dist/classes/PersChar.d.ts +11 -11
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +23 -23
  28. package/dist/classes/Pickup.d.ts +7 -7
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +13 -13
  31. package/dist/classes/Player.d.ts +237 -237
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +319 -319
  34. package/dist/classes/Prop.d.ts +105 -104
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +155 -150
  37. package/dist/classes/PropSet.d.ts +1 -1
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/Vehicle.d.ts +1 -0
  40. package/dist/classes/Vehicle.d.ts.map +1 -1
  41. package/dist/classes/Vehicle.js +5 -0
  42. package/dist/classes/VehicleTask.d.ts +21 -21
  43. package/dist/classes/VehicleTask.d.ts.map +1 -1
  44. package/dist/classes/VehicleTask.js +27 -27
  45. package/dist/classes/Volume.d.ts +40 -40
  46. package/dist/classes/Volume.d.ts.map +1 -1
  47. package/dist/classes/Volume.js +54 -54
  48. package/dist/classes/Weapon.d.ts +364 -364
  49. package/dist/classes/Weapon.d.ts.map +1 -1
  50. package/dist/classes/Weapon.js +515 -515
  51. package/dist/namespaces/Aitransport.d.ts +77 -77
  52. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  53. package/dist/namespaces/Aitransport.js +94 -94
  54. package/dist/namespaces/Animscene.d.ts +65 -65
  55. package/dist/namespaces/Animscene.d.ts.map +1 -1
  56. package/dist/namespaces/Animscene.js +83 -83
  57. package/dist/namespaces/Audio.d.ts +464 -464
  58. package/dist/namespaces/Audio.d.ts.map +1 -1
  59. package/dist/namespaces/Audio.js +651 -651
  60. package/dist/namespaces/Bounty.d.ts +23 -23
  61. package/dist/namespaces/Bounty.d.ts.map +1 -1
  62. package/dist/namespaces/Bounty.js +40 -40
  63. package/dist/namespaces/Brain.d.ts +15 -15
  64. package/dist/namespaces/Brain.d.ts.map +1 -1
  65. package/dist/namespaces/Brain.js +20 -20
  66. package/dist/namespaces/CamStatics.d.ts +459 -459
  67. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  68. package/dist/namespaces/CamStatics.js +719 -719
  69. package/dist/namespaces/Collection.d.ts +78 -78
  70. package/dist/namespaces/Collection.d.ts.map +1 -1
  71. package/dist/namespaces/Collection.js +109 -109
  72. package/dist/namespaces/Companion.d.ts +22 -22
  73. package/dist/namespaces/Companion.d.ts.map +1 -1
  74. package/dist/namespaces/Companion.js +30 -30
  75. package/dist/namespaces/Compendium.d.ts +94 -94
  76. package/dist/namespaces/Compendium.d.ts.map +1 -1
  77. package/dist/namespaces/Compendium.js +126 -126
  78. package/dist/namespaces/Databinding.d.ts +113 -113
  79. package/dist/namespaces/Databinding.d.ts.map +1 -1
  80. package/dist/namespaces/Databinding.js +167 -167
  81. package/dist/namespaces/Dlc.d.ts +5 -5
  82. package/dist/namespaces/Dlc.d.ts.map +1 -1
  83. package/dist/namespaces/Dlc.js +9 -9
  84. package/dist/namespaces/EntityStatics.d.ts +164 -164
  85. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  86. package/dist/namespaces/EntityStatics.js +225 -225
  87. package/dist/namespaces/Event.d.ts +62 -62
  88. package/dist/namespaces/Event.d.ts.map +1 -1
  89. package/dist/namespaces/Event.js +82 -82
  90. package/dist/namespaces/Fire.d.ts +7 -7
  91. package/dist/namespaces/Fire.d.ts.map +1 -1
  92. package/dist/namespaces/Fire.js +9 -9
  93. package/dist/namespaces/Graphics.d.ts +688 -688
  94. package/dist/namespaces/Graphics.d.ts.map +1 -1
  95. package/dist/namespaces/Graphics.js +876 -876
  96. package/dist/namespaces/Hud.d.ts +456 -456
  97. package/dist/namespaces/Hud.d.ts.map +1 -1
  98. package/dist/namespaces/Hud.js +598 -598
  99. package/dist/namespaces/InteriorStatics.d.ts +42 -42
  100. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  101. package/dist/namespaces/InteriorStatics.js +56 -56
  102. package/dist/namespaces/Inventory.d.ts +156 -156
  103. package/dist/namespaces/Inventory.d.ts.map +1 -1
  104. package/dist/namespaces/Inventory.js +210 -210
  105. package/dist/namespaces/Itemdatabase.d.ts +3 -3
  106. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  107. package/dist/namespaces/Law.d.ts +2 -2
  108. package/dist/namespaces/Law.d.ts.map +1 -1
  109. package/dist/namespaces/Map.d.ts +128 -128
  110. package/dist/namespaces/Map.d.ts.map +1 -1
  111. package/dist/namespaces/Map.js +180 -180
  112. package/dist/namespaces/Minigame.d.ts +60 -60
  113. package/dist/namespaces/Minigame.d.ts.map +1 -1
  114. package/dist/namespaces/Minigame.js +88 -88
  115. package/dist/namespaces/Misc.d.ts +5 -5
  116. package/dist/namespaces/Misc.d.ts.map +1 -1
  117. package/dist/namespaces/Missiondata.d.ts +3 -3
  118. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  119. package/dist/namespaces/Netshopping.d.ts +1 -1
  120. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  121. package/dist/namespaces/Network.d.ts +1528 -1536
  122. package/dist/namespaces/Network.d.ts.map +1 -1
  123. package/dist/namespaces/Network.js +2196 -2204
  124. package/dist/namespaces/Object.d.ts +244 -244
  125. package/dist/namespaces/Object.d.ts.map +1 -1
  126. package/dist/namespaces/Object.js +355 -355
  127. package/dist/namespaces/Pad.d.ts +43 -43
  128. package/dist/namespaces/Pad.d.ts.map +1 -1
  129. package/dist/namespaces/Pad.js +58 -58
  130. package/dist/namespaces/PedStatics.d.ts +21 -21
  131. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  132. package/dist/namespaces/PedStatics.js +26 -26
  133. package/dist/namespaces/Perschar.d.ts +62 -62
  134. package/dist/namespaces/Perschar.d.ts.map +1 -1
  135. package/dist/namespaces/Perschar.js +91 -91
  136. package/dist/namespaces/Persistence.d.ts +30 -30
  137. package/dist/namespaces/Persistence.d.ts.map +1 -1
  138. package/dist/namespaces/Persistence.js +42 -42
  139. package/dist/namespaces/Physics.d.ts +207 -207
  140. package/dist/namespaces/Physics.d.ts.map +1 -1
  141. package/dist/namespaces/Physics.js +310 -310
  142. package/dist/namespaces/PlayerStatics.d.ts +72 -72
  143. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  144. package/dist/namespaces/PlayerStatics.js +103 -103
  145. package/dist/namespaces/Population.d.ts +88 -88
  146. package/dist/namespaces/Population.d.ts.map +1 -1
  147. package/dist/namespaces/Population.js +116 -116
  148. package/dist/namespaces/Posse.d.ts +49 -49
  149. package/dist/namespaces/Posse.d.ts.map +1 -1
  150. package/dist/namespaces/Posse.js +79 -79
  151. package/dist/namespaces/Propset.d.ts +1 -1
  152. package/dist/namespaces/Propset.d.ts.map +1 -1
  153. package/dist/namespaces/Scripts.d.ts +3 -3
  154. package/dist/namespaces/Scripts.d.ts.map +1 -1
  155. package/dist/namespaces/Shapetest.d.ts +11 -11
  156. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  157. package/dist/namespaces/Shapetest.js +13 -13
  158. package/dist/namespaces/Socialclub.d.ts +1 -1
  159. package/dist/namespaces/Socialclub.d.ts.map +1 -1
  160. package/dist/namespaces/Stats.d.ts +174 -174
  161. package/dist/namespaces/Stats.d.ts.map +1 -1
  162. package/dist/namespaces/Stats.js +240 -240
  163. package/dist/namespaces/Streaming.d.ts +127 -127
  164. package/dist/namespaces/Streaming.d.ts.map +1 -1
  165. package/dist/namespaces/Streaming.js +193 -193
  166. package/dist/namespaces/Task.d.ts +220 -220
  167. package/dist/namespaces/Task.d.ts.map +1 -1
  168. package/dist/namespaces/Task.js +299 -299
  169. package/dist/namespaces/Telemetry.d.ts +188 -188
  170. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  171. package/dist/namespaces/Telemetry.js +249 -249
  172. package/dist/namespaces/Uiapps.d.ts +24 -24
  173. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  174. package/dist/namespaces/Uiapps.js +33 -33
  175. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  176. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  177. package/dist/namespaces/Uistickyfeed.js +21 -21
  178. package/dist/namespaces/VehicleStatics.d.ts +2 -2
  179. package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
  180. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  181. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  182. package/dist/namespaces/VolumeStatics.js +85 -85
  183. package/dist/namespaces/WeaponStatics.d.ts +262 -262
  184. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  185. package/dist/namespaces/WeaponStatics.js +361 -361
  186. package/dist/namespaces/Zone.d.ts +2 -2
  187. package/dist/namespaces/Zone.d.ts.map +1 -1
  188. package/package.json +1 -1
  189. package/src/classes/AnimScene.ts +230 -230
  190. package/src/classes/BaseModel.ts +50 -50
  191. package/src/classes/BaseTask.ts +46 -46
  192. package/src/classes/Cam.ts +113 -113
  193. package/src/classes/Entity.ts +537 -532
  194. package/src/classes/Interior.ts +43 -43
  195. package/src/classes/Ped.ts +100 -95
  196. package/src/classes/PedTask.ts +1969 -1969
  197. package/src/classes/PersChar.ts +28 -28
  198. package/src/classes/Pickup.ts +13 -13
  199. package/src/classes/Player.ts +364 -364
  200. package/src/classes/Prop.ts +167 -162
  201. package/src/classes/PropSet.ts +1 -1
  202. package/src/classes/Vehicle.ts +5 -0
  203. package/src/classes/VehicleTask.ts +30 -30
  204. package/src/classes/Volume.ts +62 -62
  205. package/src/classes/Weapon.ts +517 -517
  206. package/src/namespaces/Aitransport.ts +102 -102
  207. package/src/namespaces/Animscene.ts +92 -92
  208. package/src/namespaces/Audio.ts +765 -765
  209. package/src/namespaces/Bounty.ts +46 -46
  210. package/src/namespaces/Brain.ts +22 -22
  211. package/src/namespaces/CamStatics.ts +747 -747
  212. package/src/namespaces/Collection.ts +112 -112
  213. package/src/namespaces/Companion.ts +34 -34
  214. package/src/namespaces/Compendium.ts +131 -131
  215. package/src/namespaces/Databinding.ts +170 -170
  216. package/src/namespaces/Dlc.ts +9 -9
  217. package/src/namespaces/EntityStatics.ts +237 -237
  218. package/src/namespaces/Event.ts +92 -92
  219. package/src/namespaces/Fire.ts +10 -10
  220. package/src/namespaces/Graphics.ts +1206 -1206
  221. package/src/namespaces/Hud.ts +647 -647
  222. package/src/namespaces/InteriorStatics.ts +66 -66
  223. package/src/namespaces/Inventory.ts +237 -237
  224. package/src/namespaces/Itemdatabase.ts +3 -3
  225. package/src/namespaces/Law.ts +2 -2
  226. package/src/namespaces/Map.ts +204 -204
  227. package/src/namespaces/Minigame.ts +100 -100
  228. package/src/namespaces/Misc.ts +5 -5
  229. package/src/namespaces/Missiondata.ts +3 -3
  230. package/src/namespaces/Netshopping.ts +1 -1
  231. package/src/namespaces/Network.ts +2217 -2225
  232. package/src/namespaces/Object.ts +381 -381
  233. package/src/namespaces/Pad.ts +67 -67
  234. package/src/namespaces/PedStatics.ts +33 -33
  235. package/src/namespaces/Perschar.ts +105 -105
  236. package/src/namespaces/Persistence.ts +48 -48
  237. package/src/namespaces/Physics.ts +326 -326
  238. package/src/namespaces/PlayerStatics.ts +113 -113
  239. package/src/namespaces/Population.ts +133 -133
  240. package/src/namespaces/Posse.ts +80 -80
  241. package/src/namespaces/Propset.ts +1 -1
  242. package/src/namespaces/Scripts.ts +3 -3
  243. package/src/namespaces/Shapetest.ts +14 -14
  244. package/src/namespaces/Socialclub.ts +1 -1
  245. package/src/namespaces/Stats.ts +266 -266
  246. package/src/namespaces/Streaming.ts +226 -226
  247. package/src/namespaces/Task.ts +527 -527
  248. package/src/namespaces/Telemetry.ts +300 -300
  249. package/src/namespaces/Uiapps.ts +39 -39
  250. package/src/namespaces/Uistickyfeed.ts +23 -23
  251. package/src/namespaces/VehicleStatics.ts +2 -2
  252. package/src/namespaces/VolumeStatics.ts +87 -87
  253. package/src/namespaces/WeaponStatics.ts +365 -365
  254. package/src/namespaces/Zone.ts +2 -2
@@ -263,7 +263,7 @@ export class Itemdatabase {
263
263
  * @param index
264
264
  * @returns
265
265
  */
266
- static getModifiedPrice(key: string | number, index: number): string | number {
266
+ static getModifiedPrice(key: string | number, index: number): number {
267
267
  return (inv<number>('0xCB92EC9C004732B4', _h(key), index, rai())) & 0xFFFFFFFF;
268
268
  }
269
269
 
@@ -782,7 +782,7 @@ export class Itemdatabase {
782
782
  * @param p1
783
783
  * @returns
784
784
  */
785
- static N_0xAA29A5F13B2C20B2(p0: any, p1: string | number): string | number {
785
+ static N_0xAA29A5F13B2C20B2(p0: any, p1: string | number): number {
786
786
  return (inv<number>('0xAA29A5F13B2C20B2', p0, _h(p1), rai())) & 0xFFFFFFFF;
787
787
  }
788
788
 
@@ -811,7 +811,7 @@ export class Itemdatabase {
811
811
  * @param tag
812
812
  * @returns
813
813
  */
814
- static getItemTagType(item: string | number, tag: string | number): string | number {
814
+ static getItemTagType(item: string | number, tag: string | number): number {
815
815
  return (inv<number>('0x6111B8F9413F413A', _h(item), _h(tag), rai())) & 0xFFFFFFFF;
816
816
  }
817
817
 
@@ -467,7 +467,7 @@ export class Law {
467
467
  * @param player
468
468
  * @returns Refer to [enum: eCrimeType]
469
469
  */
470
- static getHudPlayerCrimeType(player: Player): string | number {
470
+ static getHudPlayerCrimeType(player: Player): number {
471
471
  return (inv<number>('0x259CE340A8738814', player.handle, rai())) & 0xFFFFFFFF;
472
472
  }
473
473
 
@@ -1065,7 +1065,7 @@ export class Law {
1065
1065
  * @param player
1066
1066
  * @returns
1067
1067
  */
1068
- static N_0x148E7AC8141C9E64(player: Player): string | number {
1068
+ static N_0x148E7AC8141C9E64(player: Player): number {
1069
1069
  return (inv<number>('0x148E7AC8141C9E64', player.handle, rai())) & 0xFFFFFFFF;
1070
1070
  }
1071
1071
 
@@ -151,210 +151,6 @@ export class Map {
151
151
  inv<void>('0x0BFD145EF819FB3A', angle);
152
152
  }
153
153
 
154
- /**
155
- * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
156
- *
157
- * @param entity
158
- * @param blipId
159
- */
160
- static setEntityBlipIconToLockonEntityPrompt(entity: Entity, blipId: number): void {
161
- inv<void>('0x97F6F158CC5B5CA2', entity.handle, blipId);
162
- }
163
-
164
- /**
165
- * @returns blip
166
- */
167
- static removeBlip(): Blip | null {
168
- const result = inv<number>('0xF2C3C9DA47AAA54A', pvi());
169
- return result;
170
- }
171
-
172
- static clearGpsPlayerWaypoint(): void {
173
- inv<void>('0x08FDC6F796E350D1');
174
- }
175
-
176
- /**
177
- * @param blip
178
- * @param hash
179
- * @param p2
180
- */
181
- static setBlipSprite(blip: number, hash: string | number, p2: boolean): void {
182
- inv<void>('0x74F74D3207ED525C', blip, _h(hash), p2);
183
- }
184
-
185
- /**
186
- * checks if the entity lockon prompt contains an icon
187
- *
188
- * @param entity
189
- * @param blipId
190
- * @returns
191
- */
192
- static isBlipIconOnLockonEntityPrompt(entity: Entity, blipId: number): any {
193
- return inv<number>('0x3CB8859F04763C78', entity.handle, blipId);
194
- }
195
-
196
- /**
197
- * @param toggle
198
- */
199
- static allowSonarBlips(toggle: boolean): void {
200
- inv<void>('0x6E6E64788C07D2E0', toggle);
201
- }
202
-
203
- static showActivePointsOfInterest(): void {
204
- inv<void>('0x3FBB838AEA30C1D8');
205
- }
206
-
207
- /**
208
- * @returns
209
- */
210
- static isWaypointActive(): boolean {
211
- return inv<boolean>('0x202B1BBFC6AB5EE4', rai());
212
- }
213
-
214
- /**
215
- * @param blip
216
- * @returns p1; p2
217
- */
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]];
221
- }
222
-
223
- /**
224
- * @param blipHash
225
- * @param pickup
226
- * @returns
227
- */
228
- static blipAddForPickupPlacement(blipHash: string | number, pickup: Pickup): number {
229
- return inv<number>('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
230
- }
231
-
232
- static hideActivePointsOfInterest(): void {
233
- inv<void>('0xA1B4052C2A3DCC1E');
234
- }
235
-
236
- /**
237
- * @param volume
238
- * @param p1
239
- */
240
- static setMinimapFowRevealVolume(volume: Volume, p1: string | number): void {
241
- inv<void>('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
242
- }
243
-
244
- /**
245
- * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
246
- * Removes any existing modifiers and sets the style.
247
- *
248
- * @param blip
249
- * @param styleHash
250
- * @returns
251
- */
252
- static blipSetStyle(blip: number, styleHash: string | number): any {
253
- return inv<number>('0xEDD964B7984AC291', blip, _h(styleHash));
254
- }
255
-
256
- /**
257
- * @param zoomLevel
258
- */
259
- static setRadarZoom(zoomLevel: number): void {
260
- inv<void>('0xCAF6489DA2C8DD9E', zoomLevel);
261
- }
262
-
263
- /**
264
- * @param regionHash
265
- * @param styleHash
266
- * @returns
267
- */
268
- static isRegionHighlightedWithStyle(regionHash: string | number, styleHash: string | number): any {
269
- return inv<number>('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
270
- }
271
-
272
- /**
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
276
- */
277
- static getWaypointPosition(): [any, number, number] {
278
- const result = inv<[number, number, number]>('0xF08E42BFA46BDFF8', pvf(), pvf());
279
- return [result[0], result[1], result[2]];
280
- }
281
-
282
- /**
283
- * 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?.
284
- *
285
- * @param blipid
286
- * @returns
287
- */
288
- static clearBlip(blipid: number): any {
289
- return inv<number>('0x01B928CA2E198B01', blipid);
290
- }
291
-
292
- /**
293
- * hash can be the hash of "guarma" or "world".
294
- *
295
- * @param zone
296
- */
297
- static setMinimapZone(zone: string | number): void {
298
- inv<void>('0xA657EC9DBC6CC900', _h(zone));
299
- }
300
-
301
- /**
302
- * @param blipHash
303
- * @param pos
304
- * @param radius
305
- * @returns
306
- */
307
- static blipAddForRadius(blipHash: string | number, pos: Vector3, radius: number): number {
308
- return inv<number>('0x45F13B7E0A15C880', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
309
- }
310
-
311
- /**
312
- * @param waypointRecording
313
- * @param point
314
- * @param numPoints
315
- * @param colorNameHash
316
- * @param p4
317
- * @param p5
318
- */
319
- static startGpsCustomRouteFromWaypointRecordingRoute(waypointRecording: string | null, point: number, numPoints: number, colorNameHash: string | number, p4: boolean, p5: boolean): void {
320
- inv<void>('0x6B44F13D888F770D', waypointRecording, point, numPoints, _h(colorNameHash), p4, p5);
321
- }
322
-
323
- /**
324
- * @param pos
325
- * @returns outPosition
326
- */
327
- static findClosestGpsPosition(pos: Vector3): [any, Vector3] {
328
- const result = inv<[number, number[]]>('0x3FDA2B79AEEE351C', f(pos.x), f(pos.y), f(pos.z), pvv());
329
- return [result[0], Vector3.fromArray(result[1])];
330
- }
331
-
332
- /**
333
- * @returns
334
- */
335
- static getMainPlayerBlipId(): number {
336
- return inv<number>('0x5CD2889B2B381D45', rai());
337
- }
338
-
339
- /**
340
- * @param blipHash
341
- * @param pos
342
- * @param scale
343
- * @param p7
344
- * @returns
345
- */
346
- static blipAddForArea(blipHash: string | number, pos: Vector3, scale: Vector3, p7: number): number {
347
- 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());
348
- }
349
-
350
- /**
351
- * @param blip
352
- * @param scale
353
- */
354
- static setBlipScale(blip: number, scale: number): void {
355
- inv<void>('0xD38744167B2FA257', blip, f(scale));
356
- }
357
-
358
154
  /**
359
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.
360
156
  *
@@ -733,4 +529,208 @@ export class Map {
733
529
  inv<void>('0x4B8F743A4A6D2FF8', toggle);
734
530
  }
735
531
 
532
+ /**
533
+ * 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?.
534
+ *
535
+ * @param blipid
536
+ * @returns
537
+ */
538
+ static clearBlip(blipid: number): any {
539
+ return inv<number>('0x01B928CA2E198B01', blipid);
540
+ }
541
+
542
+ /**
543
+ * hash can be the hash of "guarma" or "world".
544
+ *
545
+ * @param zone
546
+ */
547
+ static setMinimapZone(zone: string | number): void {
548
+ inv<void>('0xA657EC9DBC6CC900', _h(zone));
549
+ }
550
+
551
+ /**
552
+ * @param blipHash
553
+ * @param pos
554
+ * @param radius
555
+ * @returns
556
+ */
557
+ static blipAddForRadius(blipHash: string | number, pos: Vector3, radius: number): number {
558
+ return inv<number>('0x45F13B7E0A15C880', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
559
+ }
560
+
561
+ /**
562
+ * @param waypointRecording
563
+ * @param point
564
+ * @param numPoints
565
+ * @param colorNameHash
566
+ * @param p4
567
+ * @param p5
568
+ */
569
+ static startGpsCustomRouteFromWaypointRecordingRoute(waypointRecording: string | null, point: number, numPoints: number, colorNameHash: string | number, p4: boolean, p5: boolean): void {
570
+ inv<void>('0x6B44F13D888F770D', waypointRecording, point, numPoints, _h(colorNameHash), p4, p5);
571
+ }
572
+
573
+ /**
574
+ * @param pos
575
+ * @returns outPosition
576
+ */
577
+ static findClosestGpsPosition(pos: Vector3): [any, Vector3] {
578
+ const result = inv<[number, number[]]>('0x3FDA2B79AEEE351C', f(pos.x), f(pos.y), f(pos.z), pvv());
579
+ return [result[0], Vector3.fromArray(result[1])];
580
+ }
581
+
582
+ /**
583
+ * @returns
584
+ */
585
+ static getMainPlayerBlipId(): number {
586
+ return inv<number>('0x5CD2889B2B381D45', rai());
587
+ }
588
+
589
+ /**
590
+ * @param blipHash
591
+ * @param pos
592
+ * @param scale
593
+ * @param p7
594
+ * @returns
595
+ */
596
+ static blipAddForArea(blipHash: string | number, pos: Vector3, scale: Vector3, p7: number): number {
597
+ 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());
598
+ }
599
+
600
+ /**
601
+ * @param blip
602
+ * @param scale
603
+ */
604
+ static setBlipScale(blip: number, scale: number): void {
605
+ inv<void>('0xD38744167B2FA257', blip, f(scale));
606
+ }
607
+
608
+ /**
609
+ * adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
610
+ *
611
+ * @param entity
612
+ * @param blipId
613
+ */
614
+ static setEntityBlipIconToLockonEntityPrompt(entity: Entity, blipId: number): void {
615
+ inv<void>('0x97F6F158CC5B5CA2', entity.handle, blipId);
616
+ }
617
+
618
+ /**
619
+ * @returns blip
620
+ */
621
+ static removeBlip(): Blip | null {
622
+ const result = inv<number>('0xF2C3C9DA47AAA54A', pvi());
623
+ return result;
624
+ }
625
+
626
+ static clearGpsPlayerWaypoint(): void {
627
+ inv<void>('0x08FDC6F796E350D1');
628
+ }
629
+
630
+ /**
631
+ * @param blip
632
+ * @param hash
633
+ * @param p2
634
+ */
635
+ static setBlipSprite(blip: number, hash: string | number, p2: boolean): void {
636
+ inv<void>('0x74F74D3207ED525C', blip, _h(hash), p2);
637
+ }
638
+
639
+ /**
640
+ * checks if the entity lockon prompt contains an icon
641
+ *
642
+ * @param entity
643
+ * @param blipId
644
+ * @returns
645
+ */
646
+ static isBlipIconOnLockonEntityPrompt(entity: Entity, blipId: number): any {
647
+ return inv<number>('0x3CB8859F04763C78', entity.handle, blipId);
648
+ }
649
+
650
+ /**
651
+ * @param toggle
652
+ */
653
+ static allowSonarBlips(toggle: boolean): void {
654
+ inv<void>('0x6E6E64788C07D2E0', toggle);
655
+ }
656
+
657
+ static showActivePointsOfInterest(): void {
658
+ inv<void>('0x3FBB838AEA30C1D8');
659
+ }
660
+
661
+ /**
662
+ * @returns
663
+ */
664
+ static isWaypointActive(): boolean {
665
+ return inv<boolean>('0x202B1BBFC6AB5EE4', rai());
666
+ }
667
+
668
+ /**
669
+ * @param blip
670
+ * @returns p1; p2
671
+ */
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]];
675
+ }
676
+
677
+ /**
678
+ * @param blipHash
679
+ * @param pickup
680
+ * @returns
681
+ */
682
+ static blipAddForPickupPlacement(blipHash: string | number, pickup: Pickup): number {
683
+ return inv<number>('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
684
+ }
685
+
686
+ static hideActivePointsOfInterest(): void {
687
+ inv<void>('0xA1B4052C2A3DCC1E');
688
+ }
689
+
690
+ /**
691
+ * @param volume
692
+ * @param p1
693
+ */
694
+ static setMinimapFowRevealVolume(volume: Volume, p1: string | number): void {
695
+ inv<void>('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
696
+ }
697
+
698
+ /**
699
+ * https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
700
+ * Removes any existing modifiers and sets the style.
701
+ *
702
+ * @param blip
703
+ * @param styleHash
704
+ * @returns
705
+ */
706
+ static blipSetStyle(blip: number, styleHash: string | number): any {
707
+ return inv<number>('0xEDD964B7984AC291', blip, _h(styleHash));
708
+ }
709
+
710
+ /**
711
+ * @param zoomLevel
712
+ */
713
+ static setRadarZoom(zoomLevel: number): void {
714
+ inv<void>('0xCAF6489DA2C8DD9E', zoomLevel);
715
+ }
716
+
717
+ /**
718
+ * @param regionHash
719
+ * @param styleHash
720
+ * @returns
721
+ */
722
+ static isRegionHighlightedWithStyle(regionHash: string | number, styleHash: string | number): any {
723
+ return inv<number>('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
724
+ }
725
+
726
+ /**
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
730
+ */
731
+ static getWaypointPosition(): [any, number, number] {
732
+ const result = inv<[number, number, number]>('0xF08E42BFA46BDFF8', pvf(), pvf());
733
+ return [result[0], result[1], result[2]];
734
+ }
735
+
736
736
  }
@@ -6,6 +6,98 @@ import { createFromHandle } from '../types/HandleRegistry';
6
6
  import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f } from '../types/NativeAliases';
7
7
 
8
8
  export class Minigame {
9
+ /**
10
+ * @param p0
11
+ * @param p1
12
+ * @returns
13
+ */
14
+ static getNextEvent(p0: any, p1: any): any {
15
+ return inv<number>('0xDF728C5AE137FC13', p0, p1);
16
+ }
17
+
18
+ static N_0x3DF7EE3A76185108(): void {
19
+ inv<void>('0x3DF7EE3A76185108');
20
+ }
21
+
22
+ /**
23
+ * @param p0
24
+ * @returns
25
+ */
26
+ static leaveTable(p0: any): any {
27
+ return inv<number>('0xF5446E47941E654C', p0);
28
+ }
29
+
30
+ /**
31
+ * @param p0
32
+ * @returns
33
+ */
34
+ static N_0xD39D32EB3B52DD83(p0: any): any {
35
+ return inv<number>('0xD39D32EB3B52DD83', p0);
36
+ }
37
+
38
+ /**
39
+ * @returns
40
+ */
41
+ static getNextEventType(): any {
42
+ return inv<number>('0x578907F59BA01B6C');
43
+ }
44
+
45
+ /**
46
+ * @param p0
47
+ * @param p1
48
+ * @param p2
49
+ * @returns
50
+ */
51
+ static N_0xDF728C5AE137FC14(p0: any, p1: any, p2: any): any {
52
+ return inv<number>('0xDF728C5AE137FC14', p0, p1, p2);
53
+ }
54
+
55
+ /**
56
+ * @param p0
57
+ * @returns
58
+ */
59
+ static isSeatOccupied(p0: any): any {
60
+ return inv<number>('0x8593A8CB0ED2C3B4', p0);
61
+ }
62
+
63
+ static N_0x18A0D48DF9211C07(): void {
64
+ inv<void>('0x18A0D48DF9211C07');
65
+ }
66
+
67
+ /**
68
+ * @param p0
69
+ * @returns
70
+ */
71
+ static pokerFold(p0: any): any {
72
+ return inv<number>('0x3DFAB7D9BB45B5BE', p0);
73
+ }
74
+
75
+ /**
76
+ * @param p0
77
+ * @param p1
78
+ * @returns
79
+ */
80
+ static N_0x9DD95B405AB4983E(p0: any, p1: any): any {
81
+ return inv<number>('0x9DD95B405AB4983E', p0, p1);
82
+ }
83
+
84
+ /**
85
+ * @param p0
86
+ * @returns
87
+ */
88
+ static pokerReveal(p0: any): any {
89
+ return inv<number>('0x2F2131DB0A8B02DC', p0);
90
+ }
91
+
92
+ /**
93
+ * @param p0
94
+ * @param p1
95
+ * @returns
96
+ */
97
+ static pokerCheck(p0: any, p1: any): any {
98
+ return inv<number>('0x49A045628D9B1B86', p0, p1);
99
+ }
100
+
9
101
  /**
10
102
  * @param p0
11
103
  * @returns
@@ -141,95 +233,32 @@ export class Minigame {
141
233
  }
142
234
 
143
235
  /**
144
- * @param p0
145
- * @param p1
146
- * @returns
147
- */
148
- static getNextEvent(p0: any, p1: any): any {
149
- return inv<number>('0xDF728C5AE137FC13', p0, p1);
150
- }
151
-
152
- static N_0x3DF7EE3A76185108(): void {
153
- inv<void>('0x3DF7EE3A76185108');
154
- }
155
-
156
- /**
157
- * @param p0
158
- * @returns
159
- */
160
- static leaveTable(p0: any): any {
161
- return inv<number>('0xF5446E47941E654C', p0);
162
- }
163
-
164
- /**
165
- * @param p0
166
- * @returns
167
- */
168
- static N_0xD39D32EB3B52DD83(p0: any): any {
169
- return inv<number>('0xD39D32EB3B52DD83', p0);
170
- }
171
-
172
- /**
173
- * @returns
174
- */
175
- static getNextEventType(): any {
176
- return inv<number>('0x578907F59BA01B6C');
177
- }
178
-
179
- /**
180
- * @param p0
181
- * @param p1
182
- * @param p2
183
- * @returns
184
- */
185
- static N_0xDF728C5AE137FC14(p0: any, p1: any, p2: any): any {
186
- return inv<number>('0xDF728C5AE137FC14', p0, p1, p2);
187
- }
188
-
189
- /**
190
- * @param p0
191
- * @returns
192
- */
193
- static isSeatOccupied(p0: any): any {
194
- return inv<number>('0x8593A8CB0ED2C3B4', p0);
195
- }
196
-
197
- static N_0x18A0D48DF9211C07(): void {
198
- inv<void>('0x18A0D48DF9211C07');
199
- }
200
-
201
- /**
202
- * @param p0
203
236
  * @returns
204
237
  */
205
- static pokerFold(p0: any): any {
206
- return inv<number>('0x3DFAB7D9BB45B5BE', p0);
238
+ static N_0xBEA7D3CB47E1479C(): any {
239
+ return inv<number>('0xBEA7D3CB47E1479C');
207
240
  }
208
241
 
209
242
  /**
210
243
  * @param p0
211
- * @param p1
212
244
  * @returns
213
245
  */
214
- static N_0x9DD95B405AB4983E(p0: any, p1: any): any {
215
- return inv<number>('0x9DD95B405AB4983E', p0, p1);
246
+ static N_0x578907F59BA01B6D(p0: any): any {
247
+ return inv<number>('0x578907F59BA01B6D', p0);
216
248
  }
217
249
 
218
250
  /**
219
- * @param p0
220
251
  * @returns
221
252
  */
222
- static pokerReveal(p0: any): any {
223
- return inv<number>('0x2F2131DB0A8B02DC', p0);
253
+ static N_0x39654E1F68B78287(): any {
254
+ return inv<number>('0x39654E1F68B78287');
224
255
  }
225
256
 
226
257
  /**
227
- * @param p0
228
- * @param p1
229
258
  * @returns
230
259
  */
231
- static pokerCheck(p0: any, p1: any): any {
232
- return inv<number>('0x49A045628D9B1B86', p0, p1);
260
+ static N_0x15E90B6A993017AA(): any {
261
+ return inv<number>('0x15E90B6A993017AA');
233
262
  }
234
263
 
235
264
  /**
@@ -364,33 +393,4 @@ export class Minigame {
364
393
  return inv<number>('0x8DED681B161EBD78', p0, p1);
365
394
  }
366
395
 
367
- /**
368
- * @returns
369
- */
370
- static N_0xBEA7D3CB47E1479C(): any {
371
- return inv<number>('0xBEA7D3CB47E1479C');
372
- }
373
-
374
- /**
375
- * @param p0
376
- * @returns
377
- */
378
- static N_0x578907F59BA01B6D(p0: any): any {
379
- return inv<number>('0x578907F59BA01B6D', p0);
380
- }
381
-
382
- /**
383
- * @returns
384
- */
385
- static N_0x39654E1F68B78287(): any {
386
- return inv<number>('0x39654E1F68B78287');
387
- }
388
-
389
- /**
390
- * @returns
391
- */
392
- static N_0x15E90B6A993017AA(): any {
393
- return inv<number>('0x15E90B6A993017AA');
394
- }
395
-
396
396
  }