@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
@@ -1,904 +1,745 @@
1
1
  import { inv, rai, raf, pvi, pvf, _h, f } from '../types/NativeAliases';
2
2
  export class Graphics {
3
3
  /**
4
- * When this is set to ON, shadows only draw as you get nearer. When OFF, they draw from a further distance.
4
+ * Health Core Effect Filter Potency: p1 = 1
5
+ * Stamina Core Effect Filter Potency: p1 = 2
6
+ * Multiple Core Effect Filter Potency: p1 = 3
5
7
  *
6
- * @param toggle
8
+ * @param effectName
9
+ * @param p1
10
+ * @param potency
7
11
  */
8
- static cascadeShadowsEnableEntityTracker(toggle) {
9
- inv('0x8FBFD2AEB196B369', toggle);
12
+ static animpostfxSetPotency(effectName, p1, potency) {
13
+ inv('0xF972F0AB16DC5260', effectName, p1, f(potency));
10
14
  }
11
15
  /**
12
- * Only used in R* Script nb_stalking_hunter
13
- *
14
- * @param p0
16
+ * @returns
15
17
  */
16
- static N_0xD1472AFF30C103D6(p0) {
17
- inv('0xD1472AFF30C103D6', f(p0));
18
+ static pedshotIsAvailable() {
19
+ return inv('0xAF6E67D073D2DCE2');
18
20
  }
19
21
  /**
20
- * @param worldX
21
- * @param worldY
22
- * @param worldZ
23
- * @returns screenX; screenY
22
+ * @param p0
24
23
  */
25
- static getScreenCoordFromWorldCoord(worldX, worldY, worldZ) {
26
- const result = inv('0xCB50D7AFCC8B0EC6', f(worldX), f(worldY), f(worldZ), pvf(), pvf(), rai());
27
- return [!!result[0], result[1], result[2]];
24
+ static N_0xD9BC98B55BCFAA9B(p0) {
25
+ inv('0xD9BC98B55BCFAA9B', p0);
28
26
  }
29
27
  /**
30
- * @param point
31
28
  * @param pos
32
- * @param radius
29
+ * @param xScale
30
+ * @param yScale
31
+ * @param rotation
32
+ * @param color
33
+ * @param alpha
33
34
  */
34
- static setTrackedPointInfo(point, pos, radius) {
35
- inv('0xF6FDA3D4404D4F2C', point, f(pos.x), f(pos.y), f(pos.z), f(radius));
35
+ static drawTvChannel(pos, xScale, yScale, rotation, color, alpha) {
36
+ inv('0xC0A145540254A840', f(pos.x), f(pos.y), f(xScale), f(yScale), f(rotation), color.r, color.g, color.b, color.a, alpha);
36
37
  }
37
38
  /**
38
- * Draws a 2D sprite on the screen. Parameters:
39
- * textureDict - Name of texture dictionary to load texture from textureName - Name of texture to load from texture dictionary screenX/Y - Screen offset (0.5 = center)
40
- * scaleX/Y - Texture scaling. Negative values can be used to flip the texture on that axis. (0.5 = half) heading - Texture rotation in degrees (default = 0.0) positive is clockwise, measured in degrees red,green,blue - Sprite color (default = 255/255/255) alpha - opacity level https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures
41
- *
42
- * @param textureDict
43
- * @param textureName
44
- * @param screenX
45
- * @param screenY
46
- * @param width
47
- * @param height
48
- * @param heading
49
- * @param color
50
- * @param alpha
51
- * @param p11
39
+ * @param handle
52
40
  */
53
- static drawSprite(textureDict, textureName, screenX, screenY, width, height, heading, color, alpha, p11) {
54
- inv('0xC9884ECADE94CB34', textureDict, textureName, f(screenX), f(screenY), f(width), f(height), f(heading), color.r, color.g, color.b, color.a, alpha, p11);
41
+ static removeGrassCullSphere(handle) {
42
+ inv('0xAE7BF7CA9E4BA48D', handle);
55
43
  }
56
44
  /**
45
+ * @param slots
57
46
  * @returns
58
47
  */
59
- static getCurrentNumberOfLocalPhotos() {
60
- return inv('0x78C56B8A7B1D000C', rai());
48
+ static createSwatchTextureDict(slots) {
49
+ return inv('0x3D084D5568FB4028', slots);
61
50
  }
62
51
  /**
63
- * @param ptfxHandle
64
- * @param p1
52
+ * _GET_C* - _GET_E*
53
+ *
54
+ * @returns
65
55
  */
66
- static removeParticleFx(ptfxHandle, p1) {
67
- inv('0x459598F579C98929', ptfxHandle, p1);
56
+ static getModifiedVisibilityDistance() {
57
+ return inv('0x25CA89B2A39DCC69', raf());
68
58
  }
69
59
  /**
70
- * Removes all decals in range from a position, it includes the bullet holes, blood pools, petrol...
60
+ * nullsub, doesn't do anything
71
61
  *
72
- * @param pos
73
- * @param range
62
+ * @param p0
74
63
  */
75
- static removeDecalsInRange(pos, range) {
76
- inv('0x86DE59FA02902B40', f(pos.x), f(pos.y), f(pos.z), f(range));
64
+ static N_0x94B261F1F35293E1(p0) {
65
+ inv('0x94B261F1F35293E1', p0);
77
66
  }
78
67
  /**
79
- * @param p0
68
+ * Probably changes tvs from being a 3d audio to being "global" audio
69
+ *
70
+ * @param toggle
80
71
  */
81
- static setPhotoOverlayEffectStat(p0) {
82
- inv('0x8B3296278328B5EB', p0);
72
+ static setTvAudioFrontend(toggle) {
73
+ inv('0x64437C98FCC5F291', toggle);
83
74
  }
84
75
  /**
85
- * @param ptfxHandle
86
- * @param r
87
- * @param g
88
- * @param b
89
- * @param p4
76
+ * @returns
90
77
  */
91
- static setParticleFxLoopedColour(ptfxHandle, r, g, b, p4) {
92
- inv('0x239879FC61C610CC', ptfxHandle, f(r), f(g), f(b), p4);
78
+ static getTimecycleTransitionModifierIndex() {
79
+ return inv('0x2DA67BA3C8A6755D', rai());
93
80
  }
94
81
  /**
95
- * @param effectNameHash
82
+ * @param ptfxHandle
83
+ * @param propertyName
84
+ * @param amount
85
+ * @param noNetwork
96
86
  */
97
- static animpostfxStopStackhashPostfx(effectNameHash) {
98
- inv('0xEDA5CBECF56E1386', _h(effectNameHash));
87
+ static setParticleFxLoopedEvolution(ptfxHandle, propertyName, amount, noNetwork) {
88
+ inv('0x3674F389B0FACD80', ptfxHandle, propertyName, f(amount), noNetwork);
99
89
  }
100
90
  /**
101
- * @param value
91
+ * @param effectName
92
+ * @returns
102
93
  */
103
- static changePhotoModeContrast(value) {
104
- inv('0x62B9F9A1272AED80', f(value));
94
+ static animpostfxHasLoaded(effectName) {
95
+ return inv('0xBF2DD155B2ADCD0A', effectName);
105
96
  }
106
97
  /**
107
- * Sets the draw order for script draw commands.
108
- *
109
- * @param drawOrder
98
+ * @param decal
99
+ * @returns
110
100
  */
111
- static setScriptGfxDrawOrder(drawOrder) {
112
- inv('0xCFCC78391C8B3814', drawOrder);
101
+ static isDecalAlive(decal) {
102
+ return inv('0x3E4B4E5CF5D3EEB5', decal, rai());
113
103
  }
114
104
  /**
115
105
  * @param p0
116
106
  */
117
- static enableStaticVegModifier(p0) {
118
- inv('0xDFEA23EC90113657', _h(p0));
107
+ static N_0x453D16D41FC51D3E(p0) {
108
+ inv('0x453D16D41FC51D3E', p0);
119
109
  }
120
110
  /**
111
+ * @param p0
112
+ * @param p1
113
+ * @param p2
114
+ * @param p3
115
+ * @param p4
116
+ * @param p5
117
+ * @param p6
121
118
  * @returns
122
119
  */
123
- static getTvChannel() {
124
- return inv('0xF90FBFD68F3C59AE', rai());
125
- }
126
- static N_0x9D1B0B5066205692() {
127
- inv('0x9D1B0B5066205692');
120
+ static N_0xE63D68F455CA0B47(p0, p1, p2, p3, p4, p5, p6) {
121
+ return inv('0xE63D68F455CA0B47', p0, p1, p2, p3, p4, p5, p6);
128
122
  }
129
123
  /**
130
- * @param alpha
124
+ * @param pos
125
+ * @param colorR
126
+ * @param colorG
127
+ * @param colorB
128
+ * @param range
129
+ * @param intensity
131
130
  */
132
- static setParticleFxNonLoopedAlpha(alpha) {
133
- inv('0xE8A35938A7026CEA', f(alpha));
131
+ static drawLightWithRange(pos, colorR, colorG, colorB, range, intensity) {
132
+ inv('0xD2D9E04C0DF927F4', f(pos.x), f(pos.y), f(pos.z), colorR, colorG, colorB, f(range), f(intensity));
134
133
  }
135
134
  /**
136
- * @param point
135
+ * Only used in guama1 R* SP Script while spawning the ship
136
+ * *SET_ENTITY_QUATERNION** - SET_ENTITY_RENDER_*
137
+ *
138
+ * @param vehicle
139
+ * @param toggle
137
140
  */
138
- static destroyTrackedPoint(point) {
139
- inv('0x37A59922109F8F1C', point);
141
+ static setEntityRenderGuarmaShip(vehicle, toggle) {
142
+ inv('0xC38B4952B728397A', vehicle.handle, toggle);
140
143
  }
141
144
  /**
142
- * @param p0
145
+ * @param effectName
146
+ * @param entity
147
+ * @param offset
148
+ * @param rot
149
+ * @param scale
150
+ * @param axisX
151
+ * @param axisY
152
+ * @param axisZ
153
+ * @returns
143
154
  */
144
- static N_0x67B0778C62E74423(p0) {
145
- inv('0x67B0778C62E74423', p0);
155
+ static startNetworkedParticleFxNonLoopedOnEntity(effectName, entity, offset, rot, scale, axisX, axisY, axisZ) {
156
+ return inv('0xE6CFE43937061143', effectName, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), f(scale), axisX, axisY, axisZ, rai());
146
157
  }
147
158
  /**
148
- * ANIMPOSTFX_*
149
- *
150
- * @param effectNameHash
159
+ * @param lock
151
160
  */
152
- static N_0x71845905BCCDE781(effectNameHash) {
153
- inv('0x71845905BCCDE781', _h(effectNameHash));
161
+ static setPhotoModeExposureLocked(lock) {
162
+ inv('0x5CD6A2CCE5087161', lock);
154
163
  }
155
- static N_0xF2F543D48F319A3A() {
156
- inv('0xF2F543D48F319A3A');
164
+ static N_0x815653A42C5ABE76() {
165
+ inv('0x815653A42C5ABE76');
157
166
  }
158
167
  /**
159
- * ANIMPOSTFX_*
160
- *
168
+ * @param effectName
161
169
  * @returns
162
170
  */
163
- static N_0x3DA7A10583A4BEC0() {
164
- return inv('0x3DA7A10583A4BEC0', rai());
165
- }
166
- /**
167
- * Does not affect weapons, particles, fire/explosions, flashlights or the sun.
168
- * When set to true, all emissive textures (including ped components that have light effects), street lights, building lights, vehicle lights, etc will all be turned off. state: True turns off all artificial light sources in the map: buildings, street lights, car lights, etc. False turns them back on.
169
- *
170
- * @param state
171
- */
172
- static setArtificialLightsState(state) {
173
- inv('0xB2797619A7C7747B', state);
171
+ static animpostfxIsTagPlaying(effectName) {
172
+ return inv('0x2D4F9C852CE8A253', effectName);
174
173
  }
175
174
  /**
176
- * Possible values:
177
- * "CSM_ST_POINT"
178
- * "CSM_ST_LINEAR"
179
- * "CSM_ST_BOX3x3"
180
- * "CSM_ST_BOX4x4"
181
- * "CSM_ST_DITHER2_LINEAR"
182
- * "CSM_ST_CUBIC"
183
- * "CSM_ST_POISSON16"
184
- * "CSM_ST_SOFT8"
185
- * "CSM_ST_SOFT16"
186
- * "CSM_ST_SOFT32"
187
- * "CSM_ST_DITHER16_RPDB"
188
- * "CSM_ST_POISSON16_RPDB_GNORM"
189
- * "CSM_ST_HIGHRES_BOX4x4"
190
- * "CSM_ST_ESM"
175
+ * enum class eSnowCoverageType
176
+ * {
177
+ * Primary,
178
+ * Secondary,
179
+ * Xmas,
180
+ * XmasSecondary // since b1232
181
+ * };
191
182
  *
192
183
  * @param type
193
184
  */
194
- static cascadeShadowsSetShadowSampleType(type) {
195
- inv('0xCE4774E0F9AD48D1', type);
185
+ static setSnowCoverageType(type) {
186
+ inv('0xF02A9C330BBFC5C7', type);
196
187
  }
197
188
  /**
198
- * @param p0
189
+ * @param effectNameHash
199
190
  */
200
- static N_0x519928DF02EB5101(p0) {
201
- inv('0x519928DF02EB5101', p0);
191
+ static animpostfxPlayTag(effectNameHash) {
192
+ inv('0x9B8D5D4CB8AF58B3', _h(effectNameHash));
202
193
  }
203
194
  /**
204
- * Gets set to 1 when GET_STATUS_OF_TAKE_HIGH_QUALITY_PHOTO = PHOTO_OPERATION_SUCCEEDED
205
- *
206
- * @param p0
195
+ * @param pickupObject
196
+ * @param toggle
207
197
  */
208
- static N_0x0D5B19C34068FEE7(p0) {
209
- inv('0x0D5B19C34068FEE7', p0);
198
+ static blockPickupObjectLight(pickupObject, toggle) {
199
+ inv('0x50C14328119E1DD1', pickupObject.handle, toggle);
210
200
  }
211
201
  /**
212
- * type must be less than or equal to 20
213
- *
202
+ * @param effectName
214
203
  * @param entity
215
- * @param type
216
- */
217
- static setLightsTypeForEntity(entity, type) {
218
- inv('0xAB72C67163DC4DB4', entity.handle, type);
219
- }
220
- /**
221
- * @param p0
222
- * @param p1
223
- * @param p2
224
- * @param p3
204
+ * @param offset
205
+ * @param rot
206
+ * @param scale
207
+ * @param xAxis
208
+ * @param yAxis
209
+ * @param zAxis
210
+ * @returns
225
211
  */
226
- static N_0xD543487A1F12828F(p0, p1, p2, p3) {
227
- inv('0xD543487A1F12828F', p0, p1, p2, p3);
212
+ static startNetworkedParticleFxLoopedOnEntity(effectName, entity, offset, rot, scale, xAxis, yAxis, zAxis) {
213
+ return inv('0x8F90AB32E1944BDE', effectName, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), f(scale), xAxis, yAxis, zAxis, rai());
228
214
  }
229
215
  /**
230
- * @param p0
216
+ * @param pos
217
+ * @param radius
231
218
  */
232
- static N_0xFF8018C778349234(p0) {
233
- inv('0xFF8018C778349234', p0);
219
+ static removeParticleFxInRange(pos, radius) {
220
+ inv('0x87B5905ECA623B68', f(pos.x), f(pos.y), f(pos.z), f(radius));
234
221
  }
235
222
  /**
236
- * Old name: _SET_HIDOF_ENV_BLUR_PARAMS
223
+ * https://github.com/femga/rdr3_discoveries/blob/master/graphics/ptfx/ptfx_assets_looped.lua
237
224
  *
238
- * @param p0
239
- * @param p1
240
- * @param p2
241
- * @param p3
242
- * @param p4
243
- * @param p5
244
- */
245
- static setHidofOverride(p0, p1, p2, p3, p4, p5) {
246
- inv('0xCC23AA1A7CBFE840', p0, p1, f(p2), f(p3), f(p4), f(p5));
247
- }
248
- /**
249
225
  * @param effectName
250
- * @param entity
251
- * @param offset
226
+ * @param pos
252
227
  * @param rot
253
- * @param boneIndex
254
228
  * @param scale
255
229
  * @param xAxis
256
230
  * @param yAxis
257
231
  * @param zAxis
232
+ * @param p11
258
233
  * @returns
259
234
  */
260
- static startParticleFxLoopedOnEntityBone(effectName, entity, offset, rot, boneIndex, scale, xAxis, yAxis, zAxis) {
261
- return inv('0xD3BA6EC7F2FBD5E9', effectName, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), xAxis, yAxis, zAxis, rai());
235
+ static startParticleFxLoopedAtCoord(effectName, pos, rot, scale, xAxis, yAxis, zAxis, p11) {
236
+ return inv('0xBA32867E86125D3A', effectName, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(scale), xAxis, yAxis, zAxis, p11, rai());
262
237
  }
263
238
  /**
264
- * Sets the checkpoint icon color.
265
- *
266
- * @param checkpoint
267
- * @param color
268
- * @param alpha
239
+ * @returns
269
240
  */
270
- static setCheckpointRgba2(checkpoint, color, alpha) {
271
- inv('0x99AFF17222D4DEB4', checkpoint, color.r, color.g, color.b, color.a, alpha);
241
+ static getTimecycleModifierIndex() {
242
+ return inv('0xA705394293E2B3D3', rai());
272
243
  }
273
244
  /**
274
- * nullsub, doesn't do anything (GTA5 leftover, there is no phone in RDR3)
245
+ * nullsub, doesn't do anything
275
246
  *
276
- * @param p0
277
- * @param photoRotation
247
+ * @param toggle
278
248
  */
279
- static drawLowQualityPhotoToPhone(p0, photoRotation) {
280
- inv('0xF1142E5D64B47802', p0, photoRotation);
249
+ static enableMovieSubtitles(toggle) {
250
+ inv('0x6FC9B065229C0787', toggle);
281
251
  }
282
252
  /**
283
- * https://gfycat.com/meagerfaireyra
284
- *
285
- * @param entity
286
- * @param color
253
+ * @param p0
254
+ * @param p1
255
+ * @param p2
256
+ * @param p3
257
+ * @param p4
287
258
  */
288
- static setLightsColorForEntity(entity, color) {
289
- inv('0x6EC2A67962296F49', entity.handle, color.r, color.g, color.b, color.a);
259
+ static N_0x171C18E994C1A395(p0, p1, p2, p3, p4) {
260
+ inv('0x171C18E994C1A395', p0, p1, p2, p3, p4);
290
261
  }
291
262
  /**
292
- * @param effectName
293
- * @param ped
294
- * @param offset
295
- * @param rot
296
- * @param boneIndex
297
- * @param scale
298
- * @param axisX
299
- * @param axisY
300
- * @param axisZ
263
+ * Doesn't actually return anything. ANIMPOSTFX_*
264
+ *
301
265
  * @returns
302
266
  */
303
- static startParticleFxNonLoopedOnPedBone2(effectName, ped, offset, rot, boneIndex, scale, axisX, axisY, axisZ) {
304
- return inv('0xC695870B8A149B96', effectName, ped.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), axisX, axisY, axisZ);
305
- }
306
- static N_0x981C7D863980FA51() {
307
- inv('0x981C7D863980FA51');
267
+ static N_0xC37792A3F9C90771() {
268
+ return inv('0xC37792A3F9C90771');
308
269
  }
309
270
  /**
310
- * @param p0
271
+ * Adds Vegetation Blocking Zone, Added Snow Flattening veg mod Zone
272
+ * Returns veg modifier handle
273
+ *
274
+ * @param volume
311
275
  * @param p1
276
+ * @param flags
277
+ * @param p3
278
+ * @returns
312
279
  */
313
- static N_0x9F6D859C80708B26(p0, p1) {
314
- inv('0x9F6D859C80708B26', p0, p1);
280
+ static addVegModifierZone(volume, p1, flags, p3) {
281
+ return inv('0xBD3324281E8B9933', volume.handle, p1, flags, p3, rai());
315
282
  }
316
283
  /**
317
- * @param oldAsset
318
- * @param newAsset
284
+ * Creates blood pools for the given ped in some interval for a few seconds.
285
+ *
286
+ * @param ped
319
287
  */
320
- static setParticleFxOverride(oldAsset, newAsset) {
321
- inv('0xBE711A169E9C7E95', oldAsset, newAsset);
288
+ static addBloodPoolsForPed(ped) {
289
+ inv('0xDFCE8CE9F3EBE93F', ped.handle);
322
290
  }
323
291
  /**
324
- * @param p0
325
- * @param p1
292
+ * @param texture
293
+ * @param ped
294
+ * @param playerSlot
295
+ * @returns
326
296
  */
327
- static N_0xA0F4D12D6042F6D5(p0, p1) {
328
- inv('0xA0F4D12D6042F6D5', p0, p1);
297
+ static pedshotGeneratePersonaPhoto(texture, ped, playerSlot) {
298
+ return inv('0xD9C24F53631F2372', texture, ped.handle, playerSlot, rai());
329
299
  }
330
300
  /**
331
- * @param ptfxHandle
332
- * @param pos
333
- * @param rot
301
+ * @returns
334
302
  */
335
- static setParticleFxLoopedOffsets(ptfxHandle, pos, rot) {
336
- inv('0xD3A4A95FC94FE83B', ptfxHandle, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z));
303
+ static queueOperationToCreateSortedListOfPhotos() {
304
+ return inv('0xA42EDF1E88734A7E');
337
305
  }
338
306
  /**
339
307
  * @param p0
340
308
  */
341
- static disableStaticVegModifier(p0) {
342
- inv('0xDD0BC0EDCB2162F6', _h(p0));
309
+ static setRegionPhotoTakenStat(p0) {
310
+ inv('0xD1031B83AC093BC7', p0);
343
311
  }
344
312
  /**
345
- * @param ptfxHandle
346
- * @param scale
313
+ * @param effectName
347
314
  */
348
- static setParticleFxLoopedScale(ptfxHandle, scale) {
349
- inv('0x1A9E1C0D98D093B7', ptfxHandle, f(scale));
315
+ static animpostfxSetToUnload(effectName) {
316
+ inv('0x37D7BDBA89F13959', effectName);
350
317
  }
351
318
  /**
352
- * https://github.com/femga/rdr3_discoveries/blob/master/graphics/ptfx/ptfx_assets_non_looped.lua
353
- *
354
- * @param effectName
355
- * @param pos
356
- * @param rot
357
- * @param scale
358
- * @param eventType
359
- * @param bPeekOnly
360
- * @param bIsRegistered
319
+ * @param proxyInteriorIndex
361
320
  * @returns
362
321
  */
363
- static startParticleFxNonLoopedAtCoord(effectName, pos, rot, scale, eventType, bPeekOnly, bIsRegistered) {
364
- return inv('0x2E80BF72EF7C87AC', effectName, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(scale), eventType, bPeekOnly, bIsRegistered, rai());
322
+ static isProxyInteriorIndexArtificialLightsEnabled(proxyInteriorIndex) {
323
+ return inv('0x113857D66A9CABE6', proxyInteriorIndex);
365
324
  }
366
325
  /**
367
326
  * @param p0
368
- * @returns
369
327
  */
370
- static isStaticVegModifierEnabled(p0) {
371
- return inv('0xDE9BAD3292AA6D5E', _h(p0));
328
+ static setPhotoInPhotomodeStat(p0) {
329
+ inv('0xFA91736933AB3D93', p0);
372
330
  }
373
331
  /**
374
- * @param scale
332
+ * @param entity
333
+ * @param intensity
375
334
  */
376
- static setParticleFxBulletImpactScale(scale) {
377
- inv('0xA53C8D7D0F8C74D0', f(scale));
335
+ static setLightsIntensityForEntity(entity, intensity) {
336
+ inv('0x07C0F87AAC57F2E4', entity.handle, f(intensity));
378
337
  }
379
338
  /**
380
- * @param p0
381
- * @param p1
382
- * @param p2
383
- * @param p3
384
- * @param p4
385
- * @param p5
386
- * @param p6
387
- * @param p7
339
+ * @param entity
388
340
  */
389
- static cascadeShadowsSetCascadeBounds(p0, p1, p2, p3, p4, p5, p6, p7) {
390
- inv('0xD9EDB2E4512D563E', p0, p1, f(p2), f(p3), f(p4), f(p5), p6, f(p7));
341
+ static updateLightsOnEntity(entity) {
342
+ inv('0xBDBACB52A03CC760', entity.handle);
391
343
  }
392
344
  /**
393
- * @param value
345
+ * @returns
394
346
  */
395
- static changePhotoModeExposure(value) {
396
- inv('0xC8D0611D9A0CF5D3', f(value));
347
+ static getStatusOfTakeHighQualityPhoto() {
348
+ return inv('0x4A3DA74C3CCB1725', rai());
397
349
  }
398
350
  /**
399
- * @param point
400
351
  * @returns
401
352
  */
402
- static isTrackedPointValid(point) {
403
- return inv('0xF2FDDCC8C6BAE1B3', point);
353
+ static N_0x285438C26C732F9D() {
354
+ return inv('0x285438C26C732F9D');
404
355
  }
405
356
  /**
406
- * Old name: _ENABLE_EXTRA_TIMECYCLE_MODIFIER_STRENGTH
357
+ * Sets a flag defining whether or not script draw commands should continue being drawn behind the pause menu. This is usually used for draw commands that are used with a world render target.
407
358
  *
408
- * @param strength
359
+ * @param toggle
409
360
  */
410
- static enableMoonCycleOverride(strength) {
411
- inv('0x6FE93BCC7BF12B63', f(strength));
361
+ static setScriptGfxDrawBehindPausemenu(toggle) {
362
+ inv('0x906B86E6D7896B9E', toggle);
412
363
  }
413
- static setDisablePetrolDecalsIgnitingThisFrame() {
414
- inv('0x53ED07BF368EDA59');
364
+ /**
365
+ * @param p0
366
+ */
367
+ static setDistrictPhotoTakenStat(p0) {
368
+ inv('0x9937FACBBF267244', p0);
369
+ }
370
+ /**
371
+ * @param effectName
372
+ * @param ped
373
+ * @param offset
374
+ * @param rot
375
+ * @param boneIndex
376
+ * @param scale
377
+ * @param xAxis
378
+ * @param yAxis
379
+ * @param zAxis
380
+ * @returns
381
+ */
382
+ static startParticleFxLoopedOnPedBone(effectName, ped, offset, rot, boneIndex, scale, xAxis, yAxis, zAxis) {
383
+ return inv('0xE689C1B1432BB8AF', effectName, ped.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), xAxis, yAxis, zAxis, rai());
415
384
  }
416
385
  /**
417
- * Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE
418
- *
419
386
  * @param p0
420
387
  */
421
- static N_0x4BD66B4E3427689B(p0) {
422
- inv('0x4BD66B4E3427689B', p0);
388
+ static setPhotoStudioStat(p0) {
389
+ inv('0x8E6AFF353C09652E', p0);
423
390
  }
424
391
  /**
425
- * Enables/disables a kind of 'shiny' effect on metals.
392
+ * @param effectName
393
+ */
394
+ static animpostfxStop(effectName) {
395
+ inv('0xB4FD7446BAB2F394', effectName);
396
+ }
397
+ /**
398
+ * https://imgur.com/a/I2swSDJ Old name: _SET_PICKUP_OBJECT_GLOW_ENABLED
426
399
  *
427
400
  * @param object
428
401
  * @param toggle
429
402
  */
430
- static setPearlescentFxEnabled(object, toggle) {
431
- inv('0x72E30372E7CC4415', object.handle, toggle);
403
+ static setPickupLight(object, toggle) {
404
+ inv('0x7DFB49BCDB73089A', object.handle, toggle);
432
405
  }
433
406
  /**
434
- * @param enabled
407
+ * @param entity
435
408
  */
436
- static setSniperGlintsEnabled(enabled) {
437
- inv('0x6E8EB45A4F4460EB', enabled);
409
+ static removeParticleFxFromEntity(entity) {
410
+ inv('0x92884B4A49D81325', entity.handle);
438
411
  }
439
412
  /**
440
- * Example:
441
- * local hash = GetHashKey("CLOTHING_ITEM_M_EYES_001_TINT_001")
442
- * _GENERATE_SWATCH_TEXTURE(0, hash, 0, true)
443
- * metapedType: see 0xEC9A1261BF0CE510
444
- *
445
- * @param slotId
446
- * @param componentHash
447
- * @param metapedType
448
- * @param p3
449
- */
450
- static generateSwatchTexture(slotId, componentHash, metapedType, p3) {
451
- inv('0x160921255327C591', slotId, _h(componentHash), metapedType, p3);
452
- }
453
- /**
454
- * @param entity
455
- * @param mask
456
- * @param intensity
413
+ * @param ptfxHandle
414
+ * @param p1
457
415
  */
458
- static addEntityToEntityMaskWithIntensity(entity, mask, intensity) {
459
- inv('0x958DEBD9353C0935', entity.handle, mask, f(intensity));
460
- }
461
- static disableHdtexThisFrame() {
462
- inv('0x98A7CD5EA379A854');
416
+ static stopParticleFxLooped(ptfxHandle, p1) {
417
+ inv('0x22970F3A088B133B', ptfxHandle, p1);
463
418
  }
464
419
  /**
420
+ * p1: AMB_ANN_COAL_CHUTE_DIVE, AMB_ANN_COAL_CHUTE
421
+ * p2: EMIT
422
+ * p3: either 0.0f or 1.0f
423
+ *
465
424
  * @param entity
425
+ * @param p1
426
+ * @param p2
427
+ * @param p3
466
428
  */
467
- static attachTvAudioToEntity(entity) {
468
- inv('0x40866A418EB8EFDE', entity.handle);
429
+ static N_0x4FB67D172C4476F3(entity, p1, p2, p3) {
430
+ inv('0x4FB67D172C4476F3', entity.handle, p1, p2, f(p3));
469
431
  }
470
432
  /**
471
- * @param effectName
472
- * @param ped
473
- * @param offset
474
- * @param rot
475
- * @param boneIndex
476
- * @param scale
477
- * @param axisX
478
- * @param axisY
479
- * @param axisZ
433
+ * @param typeHash
434
+ * @param pos1
435
+ * @param pos2
436
+ * @param radius
437
+ * @param color
438
+ * @param alpha
439
+ * @param reserved
480
440
  * @returns
481
441
  */
482
- static startParticleFxNonLoopedOnPedBone(effectName, ped, offset, rot, boneIndex, scale, axisX, axisY, axisZ) {
483
- return inv('0x3FAA72BD940C3AC0', effectName, ped.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), axisX, axisY, axisZ, rai());
442
+ static createCheckpointWithNamehash(typeHash, pos1, pos2, radius, color, alpha, reserved) {
443
+ return inv('0x175668836B44CBB0', _h(typeHash), f(pos1.x), f(pos1.y), f(pos1.z), f(pos2.x), f(pos2.y), f(pos2.z), f(radius), color.r, color.g, color.b, color.a, alpha, reserved, rai());
444
+ }
445
+ static disableEntitymask() {
446
+ inv('0x5C9978A2A3DC3D0D');
484
447
  }
485
448
  /**
486
- * contentId: returned by NETWORK::_UGC_QUERY_GET_CREATOR_PHOTO(uVar0, 0, sParam3)
449
+ * Returns iNumPixels, iPixelsVisible
487
450
  *
488
- * @param contentId
451
+ * @param iTrackedPoint
489
452
  * @returns
490
453
  */
491
- static getStatusOfLoadMissionCreatorPhoto(contentId) {
492
- return inv('0xC71B50AE58D07369', contentId, rai());
493
- }
494
- /**
495
- * @param p0
496
- */
497
- static N_0x6C03118E9E5C1A14(p0) {
498
- inv('0x6C03118E9E5C1A14', p0);
454
+ static N_0xDFE332A5DA6FE7C9(iTrackedPoint) {
455
+ return inv('0xDFE332A5DA6FE7C9', iTrackedPoint, rai());
499
456
  }
500
457
  /**
501
- * Related to Campfires.
502
- * p1: AMB_BONFIRE_MP, AMB_CAMPFIRE_LRG_MP
503
- *
504
458
  * @param entity
505
- * @param p1
506
- * @param r
507
- * @param g
508
- * @param b
509
- */
510
- static setParticleFxAmbientColour(entity, p1, r, g, b) {
511
- inv('0x3C61B52B00848C26', entity.handle, p1, f(r), f(g), f(b));
512
- }
513
- /**
514
- * Resets the effect of SET_PARTICLE_FX_OVERRIDE
515
- *
516
- * @param name
459
+ * @returns layer0; layer1; layer2; layer3
517
460
  */
518
- static resetParticleFxOverride(name) {
519
- inv('0x274B3DABF7E72DEF', name);
461
+ static setEntityMaskLayers(entity) {
462
+ const result = inv('0xE92012611461A42A', entity.handle, pvf(), pvf(), pvf(), pvf());
463
+ return [result[0], result[1], result[2], result[3]];
520
464
  }
521
465
  /**
522
- * must be called after ANIMPOSTFX_PLAY, strength 0.0f - 1.0f
523
- *
524
- * @param effectName
525
- * @param strength
466
+ * @param point
467
+ * @returns
526
468
  */
527
- static animpostfxSetStrength(effectName, strength) {
528
- inv('0xCAB4DD2D5B2B7246', effectName, f(strength));
469
+ static isTrackedPointVisible(point) {
470
+ return inv('0xCBB056BA159FB48D', point, rai());
529
471
  }
530
- /**
531
- * @param p0
532
- * @param p1
533
- * @param p2
534
- * @param p3
535
- * @param p4
536
- */
537
- static N_0xCC3B787E73E64160(p0, p1, p2, p3, p4) {
538
- inv('0xCC3B787E73E64160', p0, p1, p2, p3, p4);
472
+ static clearTimecycleModifier() {
473
+ inv('0x0E3F4AF2D63491FB');
539
474
  }
540
475
  /**
541
- * @param volume
476
+ * Closes the the binocular scaleform
542
477
  */
543
- static setTvVolume(volume) {
544
- inv('0x73A97068787D7231', f(volume));
478
+ static N_0x5AC6E0FA028369DE() {
479
+ inv('0x5AC6E0FA028369DE');
545
480
  }
546
481
  /**
547
- * Creates a tracked point, useful for checking the visibility of a 3D point on screen.
482
+ * ANIMPOSTFX_*
548
483
  *
549
- * @returns
550
- */
551
- static createTrackedPoint() {
552
- return inv('0xFB405CB357C69CB9', rai());
553
- }
554
- /**
555
484
  * @param effectNameHash
556
- * @returns
557
- */
558
- static animpostfxIsPreloadingByStackhash(effectNameHash) {
559
- return inv('0x59EA80079B86D8C7', _h(effectNameHash));
560
- }
561
- /**
562
- * @param personaPhotoLocalCacheType
563
- */
564
- static N_0xA1A86055792FB249(personaPhotoLocalCacheType) {
565
- inv('0xA1A86055792FB249', personaPhotoLocalCacheType);
566
- }
567
- /**
568
- * @param p0
569
485
  */
570
- static setPhotoSelfStat(p0) {
571
- inv('0x2705D18C11B61046', p0);
486
+ static N_0xC76FC4C2FC5F4405(effectNameHash) {
487
+ inv('0xC76FC4C2FC5F4405', _h(effectNameHash));
572
488
  }
573
489
  /**
574
- * https://github.com/femga/rdr3_discoveries/blob/master/graphics/animpostfx
575
- *
576
490
  * @param effectName
577
491
  */
578
- static animpostfxPlay(effectName) {
579
- inv('0x4102732DF6B4005F', effectName);
492
+ static animpostfxStopTag(effectName) {
493
+ inv('0xAD74C22A541AB987', effectName);
580
494
  }
581
495
  /**
582
- * *DISABLE**
496
+ * Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE
497
+ * *ENABLE**
583
498
  */
584
- static N_0x4046493D2EEACA0E() {
585
- inv('0x4046493D2EEACA0E');
586
- }
587
- static pedshotPreviousPersonaPhotoDataCleanup() {
588
- inv('0x3E2FDDBE435A8787');
499
+ static N_0x812C1563185C6FB2() {
500
+ inv('0x812C1563185C6FB2');
589
501
  }
590
502
  /**
591
- * effectName2, p2 and p3 are unused ANIMPOSTFX_*
592
- *
593
- * @param effectName
594
- * @param effectName2
595
- * @param p2
596
- * @param p3
503
+ * @param posseId
597
504
  */
598
- static N_0x26DD2FB0A88CC412(effectName, effectName2, p2, p3) {
599
- inv('0x26DD2FB0A88CC412', effectName, effectName2, p2, p3);
505
+ static setPosseIdForPhoto(posseId) {
506
+ inv('0x564837D4A9EDE296', posseId);
600
507
  }
601
508
  /**
602
- * Example: https://pastebin.com/tTgpER9A
509
+ * Sets the checkpoint color.
603
510
  *
604
- * @param slot
605
- * @param p1
606
- */
607
- static generateSwatchTextureDirectly(slot, p1) {
608
- inv('0x646ED1A1D28487DF', slot, p1);
609
- }
610
- /**
611
- * @param p0
511
+ * @param checkpoint
512
+ * @param color
513
+ * @param alpha
612
514
  */
613
- static setParticleFxBulletImpactLodrangeScale(p0) {
614
- inv('0x8DCCC98DC0DBF9E4', f(p0));
515
+ static setCheckpointRgba(checkpoint, color, alpha) {
516
+ inv('0xCAAFC225E33B1D15', checkpoint, color.r, color.g, color.b, color.a, alpha);
615
517
  }
616
518
  /**
617
- * @param p0
618
- * @param p1
519
+ * When this is set to ON, shadows only draw as you get nearer. When OFF, they draw from a further distance.
520
+ *
521
+ * @param toggle
619
522
  */
620
- static N_0x1FF8731BE1DFC0C0(p0, p1) {
621
- inv('0x1FF8731BE1DFC0C0', p0, p1);
523
+ static cascadeShadowsEnableEntityTracker(toggle) {
524
+ inv('0x8FBFD2AEB196B369', toggle);
622
525
  }
623
526
  /**
624
- * Health Core Effect Filter Potency: p1 = 1
625
- * Stamina Core Effect Filter Potency: p1 = 2
626
- * Multiple Core Effect Filter Potency: p1 = 3
527
+ * Only used in R* Script nb_stalking_hunter
627
528
  *
628
- * @param effectName
629
- * @param p1
630
- * @param potency
529
+ * @param p0
631
530
  */
632
- static animpostfxSetPotency(effectName, p1, potency) {
633
- inv('0xF972F0AB16DC5260', effectName, p1, f(potency));
531
+ static N_0xD1472AFF30C103D6(p0) {
532
+ inv('0xD1472AFF30C103D6', f(p0));
634
533
  }
635
534
  /**
636
- * @returns
535
+ * @param worldX
536
+ * @param worldY
537
+ * @param worldZ
538
+ * @returns screenX; screenY
637
539
  */
638
- static pedshotIsAvailable() {
639
- return inv('0xAF6E67D073D2DCE2');
540
+ static getScreenCoordFromWorldCoord(worldX, worldY, worldZ) {
541
+ const result = inv('0xCB50D7AFCC8B0EC6', f(worldX), f(worldY), f(worldZ), pvf(), pvf(), rai());
542
+ return [!!result[0], result[1], result[2]];
640
543
  }
641
544
  /**
642
- * @param p0
545
+ * @param point
546
+ * @param pos
547
+ * @param radius
643
548
  */
644
- static N_0xD9BC98B55BCFAA9B(p0) {
645
- inv('0xD9BC98B55BCFAA9B', p0);
549
+ static setTrackedPointInfo(point, pos, radius) {
550
+ inv('0xF6FDA3D4404D4F2C', point, f(pos.x), f(pos.y), f(pos.z), f(radius));
646
551
  }
647
552
  /**
648
- * @param pos
649
- * @param xScale
650
- * @param yScale
651
- * @param rotation
553
+ * Draws a 2D sprite on the screen. Parameters:
554
+ * textureDict - Name of texture dictionary to load texture from textureName - Name of texture to load from texture dictionary screenX/Y - Screen offset (0.5 = center)
555
+ * scaleX/Y - Texture scaling. Negative values can be used to flip the texture on that axis. (0.5 = half) heading - Texture rotation in degrees (default = 0.0) positive is clockwise, measured in degrees red,green,blue - Sprite color (default = 255/255/255) alpha - opacity level https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures
556
+ *
557
+ * @param textureDict
558
+ * @param textureName
559
+ * @param screenX
560
+ * @param screenY
561
+ * @param width
562
+ * @param height
563
+ * @param heading
652
564
  * @param color
653
565
  * @param alpha
566
+ * @param p11
654
567
  */
655
- static drawTvChannel(pos, xScale, yScale, rotation, color, alpha) {
656
- inv('0xC0A145540254A840', f(pos.x), f(pos.y), f(xScale), f(yScale), f(rotation), color.r, color.g, color.b, color.a, alpha);
657
- }
658
- /**
659
- * @param handle
660
- */
661
- static removeGrassCullSphere(handle) {
662
- inv('0xAE7BF7CA9E4BA48D', handle);
663
- }
664
- /**
665
- * @param slots
666
- * @returns
667
- */
668
- static createSwatchTextureDict(slots) {
669
- return inv('0x3D084D5568FB4028', slots);
568
+ static drawSprite(textureDict, textureName, screenX, screenY, width, height, heading, color, alpha, p11) {
569
+ inv('0xC9884ECADE94CB34', textureDict, textureName, f(screenX), f(screenY), f(width), f(height), f(heading), color.r, color.g, color.b, color.a, alpha, p11);
670
570
  }
671
571
  /**
672
- * _GET_C* - _GET_E*
673
- *
674
572
  * @returns
675
573
  */
676
- static getModifiedVisibilityDistance() {
677
- return inv('0x25CA89B2A39DCC69', raf());
574
+ static getCurrentNumberOfLocalPhotos() {
575
+ return inv('0x78C56B8A7B1D000C', rai());
678
576
  }
679
577
  /**
680
- * nullsub, doesn't do anything
681
- *
682
- * @param p0
578
+ * @param ptfxHandle
579
+ * @param p1
683
580
  */
684
- static N_0x94B261F1F35293E1(p0) {
685
- inv('0x94B261F1F35293E1', p0);
581
+ static removeParticleFx(ptfxHandle, p1) {
582
+ inv('0x459598F579C98929', ptfxHandle, p1);
686
583
  }
687
584
  /**
688
- * Probably changes tvs from being a 3d audio to being "global" audio
585
+ * Removes all decals in range from a position, it includes the bullet holes, blood pools, petrol...
689
586
  *
690
- * @param toggle
587
+ * @param pos
588
+ * @param range
691
589
  */
692
- static setTvAudioFrontend(toggle) {
693
- inv('0x64437C98FCC5F291', toggle);
590
+ static removeDecalsInRange(pos, range) {
591
+ inv('0x86DE59FA02902B40', f(pos.x), f(pos.y), f(pos.z), f(range));
694
592
  }
695
593
  /**
696
- * @returns
594
+ * @param p0
697
595
  */
698
- static getTimecycleTransitionModifierIndex() {
699
- return inv('0x2DA67BA3C8A6755D', rai());
596
+ static setPhotoOverlayEffectStat(p0) {
597
+ inv('0x8B3296278328B5EB', p0);
700
598
  }
701
599
  /**
702
600
  * @param ptfxHandle
703
- * @param propertyName
704
- * @param amount
705
- * @param noNetwork
601
+ * @param r
602
+ * @param g
603
+ * @param b
604
+ * @param p4
706
605
  */
707
- static setParticleFxLoopedEvolution(ptfxHandle, propertyName, amount, noNetwork) {
708
- inv('0x3674F389B0FACD80', ptfxHandle, propertyName, f(amount), noNetwork);
606
+ static setParticleFxLoopedColour(ptfxHandle, r, g, b, p4) {
607
+ inv('0x239879FC61C610CC', ptfxHandle, f(r), f(g), f(b), p4);
709
608
  }
710
609
  /**
711
- * @param effectName
712
- * @returns
610
+ * @param effectNameHash
713
611
  */
714
- static animpostfxHasLoaded(effectName) {
715
- return inv('0xBF2DD155B2ADCD0A', effectName);
612
+ static animpostfxStopStackhashPostfx(effectNameHash) {
613
+ inv('0xEDA5CBECF56E1386', _h(effectNameHash));
716
614
  }
717
615
  /**
718
- * @param decal
719
- * @returns
616
+ * @param value
720
617
  */
721
- static isDecalAlive(decal) {
722
- return inv('0x3E4B4E5CF5D3EEB5', decal, rai());
618
+ static changePhotoModeContrast(value) {
619
+ inv('0x62B9F9A1272AED80', f(value));
723
620
  }
724
621
  /**
725
- * @param p0
622
+ * Sets the draw order for script draw commands.
623
+ *
624
+ * @param drawOrder
726
625
  */
727
- static N_0x453D16D41FC51D3E(p0) {
728
- inv('0x453D16D41FC51D3E', p0);
626
+ static setScriptGfxDrawOrder(drawOrder) {
627
+ inv('0xCFCC78391C8B3814', drawOrder);
729
628
  }
730
629
  /**
731
630
  * @param p0
732
- * @param p1
733
- * @param p2
734
- * @param p3
735
- * @param p4
736
- * @param p5
737
- * @param p6
738
- * @returns
739
631
  */
740
- static N_0xE63D68F455CA0B47(p0, p1, p2, p3, p4, p5, p6) {
741
- return inv('0xE63D68F455CA0B47', p0, p1, p2, p3, p4, p5, p6);
632
+ static enableStaticVegModifier(p0) {
633
+ inv('0xDFEA23EC90113657', _h(p0));
742
634
  }
743
635
  /**
744
- * @param pos
745
- * @param colorR
746
- * @param colorG
747
- * @param colorB
748
- * @param range
749
- * @param intensity
636
+ * @returns
750
637
  */
751
- static drawLightWithRange(pos, colorR, colorG, colorB, range, intensity) {
752
- inv('0xD2D9E04C0DF927F4', f(pos.x), f(pos.y), f(pos.z), colorR, colorG, colorB, f(range), f(intensity));
638
+ static getTvChannel() {
639
+ return inv('0xF90FBFD68F3C59AE', rai());
753
640
  }
754
- /**
755
- * Only used in guama1 R* SP Script while spawning the ship
756
- * *SET_ENTITY_QUATERNION** - SET_ENTITY_RENDER_*
757
- *
758
- * @param vehicle
759
- * @param toggle
760
- */
761
- static setEntityRenderGuarmaShip(vehicle, toggle) {
762
- inv('0xC38B4952B728397A', vehicle.handle, toggle);
641
+ static N_0x9D1B0B5066205692() {
642
+ inv('0x9D1B0B5066205692');
763
643
  }
764
644
  /**
765
- * @param effectName
766
- * @param entity
767
- * @param offset
768
- * @param rot
769
- * @param scale
770
- * @param axisX
771
- * @param axisY
772
- * @param axisZ
773
- * @returns
645
+ * @param alpha
774
646
  */
775
- static startNetworkedParticleFxNonLoopedOnEntity(effectName, entity, offset, rot, scale, axisX, axisY, axisZ) {
776
- return inv('0xE6CFE43937061143', effectName, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), f(scale), axisX, axisY, axisZ, rai());
647
+ static setParticleFxNonLoopedAlpha(alpha) {
648
+ inv('0xE8A35938A7026CEA', f(alpha));
777
649
  }
778
650
  /**
779
- * @param lock
651
+ * @param point
780
652
  */
781
- static setPhotoModeExposureLocked(lock) {
782
- inv('0x5CD6A2CCE5087161', lock);
783
- }
784
- static N_0x815653A42C5ABE76() {
785
- inv('0x815653A42C5ABE76');
653
+ static destroyTrackedPoint(point) {
654
+ inv('0x37A59922109F8F1C', point);
786
655
  }
787
656
  /**
788
- * @param effectName
789
- * @returns
657
+ * @param p0
790
658
  */
791
- static animpostfxIsTagPlaying(effectName) {
792
- return inv('0x2D4F9C852CE8A253', effectName);
659
+ static N_0x67B0778C62E74423(p0) {
660
+ inv('0x67B0778C62E74423', p0);
793
661
  }
794
662
  /**
795
- * enum class eSnowCoverageType
796
- * {
797
- * Primary,
798
- * Secondary,
799
- * Xmas,
800
- * XmasSecondary // since b1232
801
- * };
663
+ * ANIMPOSTFX_*
802
664
  *
803
- * @param type
804
- */
805
- static setSnowCoverageType(type) {
806
- inv('0xF02A9C330BBFC5C7', type);
807
- }
808
- /**
809
665
  * @param effectNameHash
810
666
  */
811
- static animpostfxPlayTag(effectNameHash) {
812
- inv('0x9B8D5D4CB8AF58B3', _h(effectNameHash));
813
- }
814
- /**
815
- * @param pickupObject
816
- * @param toggle
817
- */
818
- static blockPickupObjectLight(pickupObject, toggle) {
819
- inv('0x50C14328119E1DD1', pickupObject.handle, toggle);
820
- }
821
- /**
822
- * @param effectName
823
- * @param entity
824
- * @param offset
825
- * @param rot
826
- * @param scale
827
- * @param xAxis
828
- * @param yAxis
829
- * @param zAxis
830
- * @returns
831
- */
832
- static startNetworkedParticleFxLoopedOnEntity(effectName, entity, offset, rot, scale, xAxis, yAxis, zAxis) {
833
- return inv('0x8F90AB32E1944BDE', effectName, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), f(scale), xAxis, yAxis, zAxis, rai());
667
+ static N_0x71845905BCCDE781(effectNameHash) {
668
+ inv('0x71845905BCCDE781', _h(effectNameHash));
834
669
  }
835
- /**
836
- * @param pos
837
- * @param radius
838
- */
839
- static removeParticleFxInRange(pos, radius) {
840
- inv('0x87B5905ECA623B68', f(pos.x), f(pos.y), f(pos.z), f(radius));
670
+ static N_0xF2F543D48F319A3A() {
671
+ inv('0xF2F543D48F319A3A');
841
672
  }
842
673
  /**
843
- * https://github.com/femga/rdr3_discoveries/blob/master/graphics/ptfx/ptfx_assets_looped.lua
674
+ * ANIMPOSTFX_*
844
675
  *
845
- * @param effectName
846
- * @param pos
847
- * @param rot
848
- * @param scale
849
- * @param xAxis
850
- * @param yAxis
851
- * @param zAxis
852
- * @param p11
853
676
  * @returns
854
677
  */
855
- static startParticleFxLoopedAtCoord(effectName, pos, rot, scale, xAxis, yAxis, zAxis, p11) {
856
- return inv('0xBA32867E86125D3A', effectName, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(scale), xAxis, yAxis, zAxis, p11, rai());
678
+ static N_0x3DA7A10583A4BEC0() {
679
+ return inv('0x3DA7A10583A4BEC0', rai());
857
680
  }
858
681
  /**
859
- * @returns
682
+ * Does not affect weapons, particles, fire/explosions, flashlights or the sun.
683
+ * When set to true, all emissive textures (including ped components that have light effects), street lights, building lights, vehicle lights, etc will all be turned off. state: True turns off all artificial light sources in the map: buildings, street lights, car lights, etc. False turns them back on.
684
+ *
685
+ * @param state
860
686
  */
861
- static getTimecycleModifierIndex() {
862
- return inv('0xA705394293E2B3D3', rai());
687
+ static setArtificialLightsState(state) {
688
+ inv('0xB2797619A7C7747B', state);
863
689
  }
864
690
  /**
865
- * nullsub, doesn't do anything
691
+ * Possible values:
692
+ * "CSM_ST_POINT"
693
+ * "CSM_ST_LINEAR"
694
+ * "CSM_ST_BOX3x3"
695
+ * "CSM_ST_BOX4x4"
696
+ * "CSM_ST_DITHER2_LINEAR"
697
+ * "CSM_ST_CUBIC"
698
+ * "CSM_ST_POISSON16"
699
+ * "CSM_ST_SOFT8"
700
+ * "CSM_ST_SOFT16"
701
+ * "CSM_ST_SOFT32"
702
+ * "CSM_ST_DITHER16_RPDB"
703
+ * "CSM_ST_POISSON16_RPDB_GNORM"
704
+ * "CSM_ST_HIGHRES_BOX4x4"
705
+ * "CSM_ST_ESM"
866
706
  *
867
- * @param toggle
707
+ * @param type
868
708
  */
869
- static enableMovieSubtitles(toggle) {
870
- inv('0x6FC9B065229C0787', toggle);
709
+ static cascadeShadowsSetShadowSampleType(type) {
710
+ inv('0xCE4774E0F9AD48D1', type);
871
711
  }
872
712
  /**
873
713
  * @param p0
874
- * @param p1
875
- * @param p2
876
- * @param p3
877
- * @param p4
878
714
  */
879
- static N_0x171C18E994C1A395(p0, p1, p2, p3, p4) {
880
- inv('0x171C18E994C1A395', p0, p1, p2, p3, p4);
715
+ static N_0x519928DF02EB5101(p0) {
716
+ inv('0x519928DF02EB5101', p0);
881
717
  }
882
718
  /**
883
- * Doesn't actually return anything. ANIMPOSTFX_*
719
+ * Gets set to 1 when GET_STATUS_OF_TAKE_HIGH_QUALITY_PHOTO = PHOTO_OPERATION_SUCCEEDED
884
720
  *
885
- * @returns
721
+ * @param p0
886
722
  */
887
- static N_0xC37792A3F9C90771() {
888
- return inv('0xC37792A3F9C90771');
723
+ static N_0x0D5B19C34068FEE7(p0) {
724
+ inv('0x0D5B19C34068FEE7', p0);
889
725
  }
890
726
  /**
891
- * Adds Vegetation Blocking Zone, Added Snow Flattening veg mod Zone
892
- * Returns veg modifier handle
727
+ * type must be less than or equal to 20
893
728
  *
894
- * @param volume
729
+ * @param entity
730
+ * @param type
731
+ */
732
+ static setLightsTypeForEntity(entity, type) {
733
+ inv('0xAB72C67163DC4DB4', entity.handle, type);
734
+ }
735
+ /**
736
+ * @param p0
895
737
  * @param p1
896
- * @param flags
738
+ * @param p2
897
739
  * @param p3
898
- * @returns
899
740
  */
900
- static addVegModifierZone(volume, p1, flags, p3) {
901
- return inv('0xBD3324281E8B9933', volume.handle, p1, flags, p3, rai());
741
+ static N_0xD543487A1F12828F(p0, p1, p2, p3) {
742
+ inv('0xD543487A1F12828F', p0, p1, p2, p3);
902
743
  }
903
744
  /**
904
745
  * Returns proxyInteriorIndex
@@ -1142,120 +983,6 @@ export class Graphics {
1142
983
  static setProxyInteriorIndexArtificialLightsState(proxyInteriorIndex, state) {
1143
984
  inv('0xBFCB17895BB99E4E', proxyInteriorIndex, state);
1144
985
  }
1145
- /**
1146
- * Creates blood pools for the given ped in some interval for a few seconds.
1147
- *
1148
- * @param ped
1149
- */
1150
- static addBloodPoolsForPed(ped) {
1151
- inv('0xDFCE8CE9F3EBE93F', ped.handle);
1152
- }
1153
- /**
1154
- * @param texture
1155
- * @param ped
1156
- * @param playerSlot
1157
- * @returns
1158
- */
1159
- static pedshotGeneratePersonaPhoto(texture, ped, playerSlot) {
1160
- return inv('0xD9C24F53631F2372', texture, ped.handle, playerSlot, rai());
1161
- }
1162
- /**
1163
- * @returns
1164
- */
1165
- static queueOperationToCreateSortedListOfPhotos() {
1166
- return inv('0xA42EDF1E88734A7E');
1167
- }
1168
- /**
1169
- * @param p0
1170
- */
1171
- static setRegionPhotoTakenStat(p0) {
1172
- inv('0xD1031B83AC093BC7', p0);
1173
- }
1174
- /**
1175
- * @param effectName
1176
- */
1177
- static animpostfxSetToUnload(effectName) {
1178
- inv('0x37D7BDBA89F13959', effectName);
1179
- }
1180
- /**
1181
- * @param proxyInteriorIndex
1182
- * @returns
1183
- */
1184
- static isProxyInteriorIndexArtificialLightsEnabled(proxyInteriorIndex) {
1185
- return inv('0x113857D66A9CABE6', proxyInteriorIndex);
1186
- }
1187
- /**
1188
- * @param p0
1189
- */
1190
- static setPhotoInPhotomodeStat(p0) {
1191
- inv('0xFA91736933AB3D93', p0);
1192
- }
1193
- /**
1194
- * @param entity
1195
- * @param intensity
1196
- */
1197
- static setLightsIntensityForEntity(entity, intensity) {
1198
- inv('0x07C0F87AAC57F2E4', entity.handle, f(intensity));
1199
- }
1200
- /**
1201
- * @param entity
1202
- */
1203
- static updateLightsOnEntity(entity) {
1204
- inv('0xBDBACB52A03CC760', entity.handle);
1205
- }
1206
- /**
1207
- * @returns
1208
- */
1209
- static getStatusOfTakeHighQualityPhoto() {
1210
- return inv('0x4A3DA74C3CCB1725', rai());
1211
- }
1212
- /**
1213
- * @returns
1214
- */
1215
- static N_0x285438C26C732F9D() {
1216
- return inv('0x285438C26C732F9D');
1217
- }
1218
- /**
1219
- * Sets a flag defining whether or not script draw commands should continue being drawn behind the pause menu. This is usually used for draw commands that are used with a world render target.
1220
- *
1221
- * @param toggle
1222
- */
1223
- static setScriptGfxDrawBehindPausemenu(toggle) {
1224
- inv('0x906B86E6D7896B9E', toggle);
1225
- }
1226
- /**
1227
- * @param p0
1228
- */
1229
- static setDistrictPhotoTakenStat(p0) {
1230
- inv('0x9937FACBBF267244', p0);
1231
- }
1232
- /**
1233
- * @param effectName
1234
- * @param ped
1235
- * @param offset
1236
- * @param rot
1237
- * @param boneIndex
1238
- * @param scale
1239
- * @param xAxis
1240
- * @param yAxis
1241
- * @param zAxis
1242
- * @returns
1243
- */
1244
- static startParticleFxLoopedOnPedBone(effectName, ped, offset, rot, boneIndex, scale, xAxis, yAxis, zAxis) {
1245
- return inv('0xE689C1B1432BB8AF', effectName, ped.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), xAxis, yAxis, zAxis, rai());
1246
- }
1247
- /**
1248
- * @param p0
1249
- */
1250
- static setPhotoStudioStat(p0) {
1251
- inv('0x8E6AFF353C09652E', p0);
1252
- }
1253
- /**
1254
- * @param effectName
1255
- */
1256
- static animpostfxStop(effectName) {
1257
- inv('0xB4FD7446BAB2F394', effectName);
1258
- }
1259
986
  /**
1260
987
  * @param p0
1261
988
  * @param p1
@@ -1289,213 +1016,92 @@ export class Graphics {
1289
1016
  }
1290
1017
  /**
1291
1018
  * @param ptfxHandle
1292
- * @param range
1293
- */
1294
- static setParticleFxLoopedFarClipDist(ptfxHandle, range) {
1295
- inv('0x9B04D471DA0AD7AA', ptfxHandle, f(range));
1296
- }
1297
- /**
1298
- * @param p0
1299
- * @param p1
1300
- */
1301
- static N_0x085C5B61A0114F32(p0, p1) {
1302
- inv('0x085C5B61A0114F32', p0, p1);
1303
- }
1304
- /**
1305
- * @param p0
1306
- */
1307
- static N_0x9F158A49B0D84C3C(p0) {
1308
- inv('0x9F158A49B0D84C3C', p0);
1309
- }
1310
- /**
1311
- * @returns
1312
- */
1313
- static N_0x5C674EB487891F6B() {
1314
- return inv('0x5C674EB487891F6B');
1315
- }
1316
- /**
1317
- * Params: component - used in odriscolls1 and sean1 R* SP Script: COMPONENT_BINOCULARS_SCOPE01
1318
- * Triggers the binocular scaleform
1319
- *
1320
- * @param component
1321
- */
1322
- static N_0x21F00E08CBB5F37B(component) {
1323
- inv('0x21F00E08CBB5F37B', component);
1324
- }
1325
- /**
1326
- * Sets an unknown value related to timecycles.
1327
- *
1328
- * @param unk
1329
- */
1330
- static resetAdaptation(unk) {
1331
- inv('0x297B72E2AF094742', unk);
1332
- }
1333
- /**
1334
- * @param effectNameHash
1335
- */
1336
- static animpostfxPreloadPostfxByStackhash(effectNameHash) {
1337
- inv('0xF3E039322BFBD4D8', _h(effectNameHash));
1338
- }
1339
- /**
1340
- * @param effectNameHash
1341
- * @param p1
1342
- * @param p2
1343
- * @returns p3
1344
- */
1345
- static animpostfxHasEventTriggeredByStackhash(effectNameHash, p1, p2) {
1346
- const result = inv('0x9AB192A9EF980EED', _h(effectNameHash), p1, p2, pvi());
1347
- return [result[0], !!result[1]];
1348
- }
1349
- static destroySwatchTextureDict() {
1350
- inv('0xDAD7FB8402651654');
1351
- }
1352
- /**
1353
- * @returns
1354
- */
1355
- static beginTakeHighQualityPhoto() {
1356
- return inv('0xA15BFFC0A01B34E1');
1357
- }
1358
- /**
1359
- * Old name: _IS_TV_PLAYLIST_ITEM_PLAYING
1360
- *
1361
- * @param videoCliphash
1362
- * @returns
1363
- */
1364
- static isTvshowCurrentlyPlaying(videoCliphash) {
1365
- return inv('0x4D562223E0EB65F3', _h(videoCliphash), rai());
1366
- }
1367
- /**
1368
- * @param p0
1369
- */
1370
- static N_0x8996FA6AD9FE4E90(p0) {
1371
- inv('0x8996FA6AD9FE4E90', p0);
1372
- }
1373
- /**
1374
- * @param obj
1375
- */
1376
- static removeDecalsFromObject(obj) {
1377
- inv('0xFB8972BAE0013140', obj.handle);
1378
- }
1379
- /**
1380
- * https://imgur.com/a/I2swSDJ Old name: _SET_PICKUP_OBJECT_GLOW_ENABLED
1381
- *
1382
- * @param object
1383
- * @param toggle
1384
- */
1385
- static setPickupLight(object, toggle) {
1386
- inv('0x7DFB49BCDB73089A', object.handle, toggle);
1387
- }
1388
- /**
1389
- * @param entity
1390
- */
1391
- static removeParticleFxFromEntity(entity) {
1392
- inv('0x92884B4A49D81325', entity.handle);
1393
- }
1394
- /**
1395
- * @param ptfxHandle
1396
- * @param p1
1019
+ * @param range
1397
1020
  */
1398
- static stopParticleFxLooped(ptfxHandle, p1) {
1399
- inv('0x22970F3A088B133B', ptfxHandle, p1);
1021
+ static setParticleFxLoopedFarClipDist(ptfxHandle, range) {
1022
+ inv('0x9B04D471DA0AD7AA', ptfxHandle, f(range));
1400
1023
  }
1401
1024
  /**
1402
- * p1: AMB_ANN_COAL_CHUTE_DIVE, AMB_ANN_COAL_CHUTE
1403
- * p2: EMIT
1404
- * p3: either 0.0f or 1.0f
1405
- *
1406
- * @param entity
1025
+ * @param p0
1407
1026
  * @param p1
1408
- * @param p2
1409
- * @param p3
1410
1027
  */
1411
- static N_0x4FB67D172C4476F3(entity, p1, p2, p3) {
1412
- inv('0x4FB67D172C4476F3', entity.handle, p1, p2, f(p3));
1028
+ static N_0x085C5B61A0114F32(p0, p1) {
1029
+ inv('0x085C5B61A0114F32', p0, p1);
1413
1030
  }
1414
1031
  /**
1415
- * @param typeHash
1416
- * @param pos1
1417
- * @param pos2
1418
- * @param radius
1419
- * @param color
1420
- * @param alpha
1421
- * @param reserved
1422
- * @returns
1032
+ * @param p0
1423
1033
  */
1424
- static createCheckpointWithNamehash(typeHash, pos1, pos2, radius, color, alpha, reserved) {
1425
- return inv('0x175668836B44CBB0', _h(typeHash), f(pos1.x), f(pos1.y), f(pos1.z), f(pos2.x), f(pos2.y), f(pos2.z), f(radius), color.r, color.g, color.b, color.a, alpha, reserved, rai());
1426
- }
1427
- static disableEntitymask() {
1428
- inv('0x5C9978A2A3DC3D0D');
1034
+ static N_0x9F158A49B0D84C3C(p0) {
1035
+ inv('0x9F158A49B0D84C3C', p0);
1429
1036
  }
1430
1037
  /**
1431
- * Returns iNumPixels, iPixelsVisible
1432
- *
1433
- * @param iTrackedPoint
1434
1038
  * @returns
1435
1039
  */
1436
- static N_0xDFE332A5DA6FE7C9(iTrackedPoint) {
1437
- return inv('0xDFE332A5DA6FE7C9', iTrackedPoint, rai());
1040
+ static N_0x5C674EB487891F6B() {
1041
+ return inv('0x5C674EB487891F6B');
1438
1042
  }
1439
1043
  /**
1440
- * @param entity
1441
- * @returns layer0; layer1; layer2; layer3
1044
+ * Params: component - used in odriscolls1 and sean1 R* SP Script: COMPONENT_BINOCULARS_SCOPE01
1045
+ * Triggers the binocular scaleform
1046
+ *
1047
+ * @param component
1442
1048
  */
1443
- static setEntityMaskLayers(entity) {
1444
- const result = inv('0xE92012611461A42A', entity.handle, pvf(), pvf(), pvf(), pvf());
1445
- return [result[0], result[1], result[2], result[3]];
1049
+ static N_0x21F00E08CBB5F37B(component) {
1050
+ inv('0x21F00E08CBB5F37B', component);
1446
1051
  }
1447
1052
  /**
1448
- * @param point
1449
- * @returns
1053
+ * Sets an unknown value related to timecycles.
1054
+ *
1055
+ * @param unk
1450
1056
  */
1451
- static isTrackedPointVisible(point) {
1452
- return inv('0xCBB056BA159FB48D', point, rai());
1453
- }
1454
- static clearTimecycleModifier() {
1455
- inv('0x0E3F4AF2D63491FB');
1057
+ static resetAdaptation(unk) {
1058
+ inv('0x297B72E2AF094742', unk);
1456
1059
  }
1457
1060
  /**
1458
- * Closes the the binocular scaleform
1061
+ * @param effectNameHash
1459
1062
  */
1460
- static N_0x5AC6E0FA028369DE() {
1461
- inv('0x5AC6E0FA028369DE');
1063
+ static animpostfxPreloadPostfxByStackhash(effectNameHash) {
1064
+ inv('0xF3E039322BFBD4D8', _h(effectNameHash));
1462
1065
  }
1463
1066
  /**
1464
- * ANIMPOSTFX_*
1465
- *
1466
1067
  * @param effectNameHash
1068
+ * @param p1
1069
+ * @param p2
1070
+ * @returns p3
1467
1071
  */
1468
- static N_0xC76FC4C2FC5F4405(effectNameHash) {
1469
- inv('0xC76FC4C2FC5F4405', _h(effectNameHash));
1072
+ static animpostfxHasEventTriggeredByStackhash(effectNameHash, p1, p2) {
1073
+ const result = inv('0x9AB192A9EF980EED', _h(effectNameHash), p1, p2, pvi());
1074
+ return [result[0], !!result[1]];
1075
+ }
1076
+ static destroySwatchTextureDict() {
1077
+ inv('0xDAD7FB8402651654');
1470
1078
  }
1471
1079
  /**
1472
- * @param effectName
1080
+ * @returns
1473
1081
  */
1474
- static animpostfxStopTag(effectName) {
1475
- inv('0xAD74C22A541AB987', effectName);
1082
+ static beginTakeHighQualityPhoto() {
1083
+ return inv('0xA15BFFC0A01B34E1');
1476
1084
  }
1477
1085
  /**
1478
- * Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE
1479
- * *ENABLE**
1086
+ * Old name: _IS_TV_PLAYLIST_ITEM_PLAYING
1087
+ *
1088
+ * @param videoCliphash
1089
+ * @returns
1480
1090
  */
1481
- static N_0x812C1563185C6FB2() {
1482
- inv('0x812C1563185C6FB2');
1091
+ static isTvshowCurrentlyPlaying(videoCliphash) {
1092
+ return inv('0x4D562223E0EB65F3', _h(videoCliphash), rai());
1483
1093
  }
1484
1094
  /**
1485
- * @param posseId
1095
+ * @param p0
1486
1096
  */
1487
- static setPosseIdForPhoto(posseId) {
1488
- inv('0x564837D4A9EDE296', posseId);
1097
+ static N_0x8996FA6AD9FE4E90(p0) {
1098
+ inv('0x8996FA6AD9FE4E90', p0);
1489
1099
  }
1490
1100
  /**
1491
- * Sets the checkpoint color.
1492
- *
1493
- * @param checkpoint
1494
- * @param color
1495
- * @param alpha
1101
+ * @param obj
1496
1102
  */
1497
- static setCheckpointRgba(checkpoint, color, alpha) {
1498
- inv('0xCAAFC225E33B1D15', checkpoint, color.r, color.g, color.b, color.a, alpha);
1103
+ static removeDecalsFromObject(obj) {
1104
+ inv('0xFB8972BAE0013140', obj.handle);
1499
1105
  }
1500
1106
  /**
1501
1107
  * https://github.com/femga/rdr3_discoveries/blob/master/graphics/markers/marker_types.lua
@@ -1896,8 +1502,152 @@ export class Graphics {
1896
1502
  * @param size
1897
1503
  * @param p3
1898
1504
  */
1899
- static addBloodPoolsForPedWithParams(ped, p1, size, p3) {
1900
- inv('0xC349EE1E6EFA494B', ped.handle, f(p1), f(size), f(p3));
1505
+ static addBloodPoolsForPedWithParams(ped, p1, size, p3) {
1506
+ inv('0xC349EE1E6EFA494B', ped.handle, f(p1), f(size), f(p3));
1507
+ }
1508
+ /**
1509
+ * @param p0
1510
+ */
1511
+ static N_0xFF8018C778349234(p0) {
1512
+ inv('0xFF8018C778349234', p0);
1513
+ }
1514
+ /**
1515
+ * Old name: _SET_HIDOF_ENV_BLUR_PARAMS
1516
+ *
1517
+ * @param p0
1518
+ * @param p1
1519
+ * @param p2
1520
+ * @param p3
1521
+ * @param p4
1522
+ * @param p5
1523
+ */
1524
+ static setHidofOverride(p0, p1, p2, p3, p4, p5) {
1525
+ inv('0xCC23AA1A7CBFE840', p0, p1, f(p2), f(p3), f(p4), f(p5));
1526
+ }
1527
+ /**
1528
+ * @param effectName
1529
+ * @param entity
1530
+ * @param offset
1531
+ * @param rot
1532
+ * @param boneIndex
1533
+ * @param scale
1534
+ * @param xAxis
1535
+ * @param yAxis
1536
+ * @param zAxis
1537
+ * @returns
1538
+ */
1539
+ static startParticleFxLoopedOnEntityBone(effectName, entity, offset, rot, boneIndex, scale, xAxis, yAxis, zAxis) {
1540
+ return inv('0xD3BA6EC7F2FBD5E9', effectName, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), xAxis, yAxis, zAxis, rai());
1541
+ }
1542
+ /**
1543
+ * Sets the checkpoint icon color.
1544
+ *
1545
+ * @param checkpoint
1546
+ * @param color
1547
+ * @param alpha
1548
+ */
1549
+ static setCheckpointRgba2(checkpoint, color, alpha) {
1550
+ inv('0x99AFF17222D4DEB4', checkpoint, color.r, color.g, color.b, color.a, alpha);
1551
+ }
1552
+ /**
1553
+ * nullsub, doesn't do anything (GTA5 leftover, there is no phone in RDR3)
1554
+ *
1555
+ * @param p0
1556
+ * @param photoRotation
1557
+ */
1558
+ static drawLowQualityPhotoToPhone(p0, photoRotation) {
1559
+ inv('0xF1142E5D64B47802', p0, photoRotation);
1560
+ }
1561
+ /**
1562
+ * https://gfycat.com/meagerfaireyra
1563
+ *
1564
+ * @param entity
1565
+ * @param color
1566
+ */
1567
+ static setLightsColorForEntity(entity, color) {
1568
+ inv('0x6EC2A67962296F49', entity.handle, color.r, color.g, color.b, color.a);
1569
+ }
1570
+ /**
1571
+ * @param effectName
1572
+ * @param ped
1573
+ * @param offset
1574
+ * @param rot
1575
+ * @param boneIndex
1576
+ * @param scale
1577
+ * @param axisX
1578
+ * @param axisY
1579
+ * @param axisZ
1580
+ * @returns
1581
+ */
1582
+ static startParticleFxNonLoopedOnPedBone2(effectName, ped, offset, rot, boneIndex, scale, axisX, axisY, axisZ) {
1583
+ return inv('0xC695870B8A149B96', effectName, ped.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), axisX, axisY, axisZ);
1584
+ }
1585
+ static N_0x981C7D863980FA51() {
1586
+ inv('0x981C7D863980FA51');
1587
+ }
1588
+ /**
1589
+ * @param p0
1590
+ * @param p1
1591
+ */
1592
+ static N_0x9F6D859C80708B26(p0, p1) {
1593
+ inv('0x9F6D859C80708B26', p0, p1);
1594
+ }
1595
+ /**
1596
+ * @param oldAsset
1597
+ * @param newAsset
1598
+ */
1599
+ static setParticleFxOverride(oldAsset, newAsset) {
1600
+ inv('0xBE711A169E9C7E95', oldAsset, newAsset);
1601
+ }
1602
+ /**
1603
+ * @param p0
1604
+ * @param p1
1605
+ */
1606
+ static N_0xA0F4D12D6042F6D5(p0, p1) {
1607
+ inv('0xA0F4D12D6042F6D5', p0, p1);
1608
+ }
1609
+ /**
1610
+ * @param ptfxHandle
1611
+ * @param pos
1612
+ * @param rot
1613
+ */
1614
+ static setParticleFxLoopedOffsets(ptfxHandle, pos, rot) {
1615
+ inv('0xD3A4A95FC94FE83B', ptfxHandle, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z));
1616
+ }
1617
+ /**
1618
+ * @param p0
1619
+ */
1620
+ static disableStaticVegModifier(p0) {
1621
+ inv('0xDD0BC0EDCB2162F6', _h(p0));
1622
+ }
1623
+ /**
1624
+ * @param ptfxHandle
1625
+ * @param scale
1626
+ */
1627
+ static setParticleFxLoopedScale(ptfxHandle, scale) {
1628
+ inv('0x1A9E1C0D98D093B7', ptfxHandle, f(scale));
1629
+ }
1630
+ /**
1631
+ * https://github.com/femga/rdr3_discoveries/blob/master/graphics/ptfx/ptfx_assets_non_looped.lua
1632
+ *
1633
+ * @param effectName
1634
+ * @param pos
1635
+ * @param rot
1636
+ * @param scale
1637
+ * @param eventType
1638
+ * @param bPeekOnly
1639
+ * @param bIsRegistered
1640
+ * @returns
1641
+ */
1642
+ static startParticleFxNonLoopedAtCoord(effectName, pos, rot, scale, eventType, bPeekOnly, bIsRegistered) {
1643
+ return inv('0x2E80BF72EF7C87AC', effectName, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(scale), eventType, bPeekOnly, bIsRegistered, rai());
1644
+ }
1645
+ /**
1646
+ * @param p0
1647
+ * @returns
1648
+ */
1649
+ static isStaticVegModifierEnabled(p0) {
1650
+ return inv('0xDE9BAD3292AA6D5E', _h(p0));
1901
1651
  }
1902
1652
  /**
1903
1653
  * https://github.com/femga/rdr3_discoveries/blob/master/graphics/timecycles
@@ -2018,6 +1768,133 @@ export class Graphics {
2018
1768
  static N_0x910E260AEAD855DE() {
2019
1769
  inv('0x910E260AEAD855DE');
2020
1770
  }
1771
+ /**
1772
+ * @param scale
1773
+ */
1774
+ static setParticleFxBulletImpactScale(scale) {
1775
+ inv('0xA53C8D7D0F8C74D0', f(scale));
1776
+ }
1777
+ /**
1778
+ * @param p0
1779
+ * @param p1
1780
+ * @param p2
1781
+ * @param p3
1782
+ * @param p4
1783
+ * @param p5
1784
+ * @param p6
1785
+ * @param p7
1786
+ */
1787
+ static cascadeShadowsSetCascadeBounds(p0, p1, p2, p3, p4, p5, p6, p7) {
1788
+ inv('0xD9EDB2E4512D563E', p0, p1, f(p2), f(p3), f(p4), f(p5), p6, f(p7));
1789
+ }
1790
+ /**
1791
+ * @param value
1792
+ */
1793
+ static changePhotoModeExposure(value) {
1794
+ inv('0xC8D0611D9A0CF5D3', f(value));
1795
+ }
1796
+ /**
1797
+ * @param point
1798
+ * @returns
1799
+ */
1800
+ static isTrackedPointValid(point) {
1801
+ return inv('0xF2FDDCC8C6BAE1B3', point);
1802
+ }
1803
+ /**
1804
+ * Old name: _ENABLE_EXTRA_TIMECYCLE_MODIFIER_STRENGTH
1805
+ *
1806
+ * @param strength
1807
+ */
1808
+ static enableMoonCycleOverride(strength) {
1809
+ inv('0x6FE93BCC7BF12B63', f(strength));
1810
+ }
1811
+ static setDisablePetrolDecalsIgnitingThisFrame() {
1812
+ inv('0x53ED07BF368EDA59');
1813
+ }
1814
+ /**
1815
+ * Used in CREATE_BEZIER_BLOOD_TRAIL_OF_TYPE
1816
+ *
1817
+ * @param p0
1818
+ */
1819
+ static N_0x4BD66B4E3427689B(p0) {
1820
+ inv('0x4BD66B4E3427689B', p0);
1821
+ }
1822
+ /**
1823
+ * Enables/disables a kind of 'shiny' effect on metals.
1824
+ *
1825
+ * @param object
1826
+ * @param toggle
1827
+ */
1828
+ static setPearlescentFxEnabled(object, toggle) {
1829
+ inv('0x72E30372E7CC4415', object.handle, toggle);
1830
+ }
1831
+ /**
1832
+ * @param enabled
1833
+ */
1834
+ static setSniperGlintsEnabled(enabled) {
1835
+ inv('0x6E8EB45A4F4460EB', enabled);
1836
+ }
1837
+ /**
1838
+ * Example:
1839
+ * local hash = GetHashKey("CLOTHING_ITEM_M_EYES_001_TINT_001")
1840
+ * _GENERATE_SWATCH_TEXTURE(0, hash, 0, true)
1841
+ * metapedType: see 0xEC9A1261BF0CE510
1842
+ *
1843
+ * @param slotId
1844
+ * @param componentHash
1845
+ * @param metapedType
1846
+ * @param p3
1847
+ */
1848
+ static generateSwatchTexture(slotId, componentHash, metapedType, p3) {
1849
+ inv('0x160921255327C591', slotId, _h(componentHash), metapedType, p3);
1850
+ }
1851
+ /**
1852
+ * @param entity
1853
+ * @param mask
1854
+ * @param intensity
1855
+ */
1856
+ static addEntityToEntityMaskWithIntensity(entity, mask, intensity) {
1857
+ inv('0x958DEBD9353C0935', entity.handle, mask, f(intensity));
1858
+ }
1859
+ static disableHdtexThisFrame() {
1860
+ inv('0x98A7CD5EA379A854');
1861
+ }
1862
+ /**
1863
+ * @param entity
1864
+ */
1865
+ static attachTvAudioToEntity(entity) {
1866
+ inv('0x40866A418EB8EFDE', entity.handle);
1867
+ }
1868
+ /**
1869
+ * @param effectName
1870
+ * @param ped
1871
+ * @param offset
1872
+ * @param rot
1873
+ * @param boneIndex
1874
+ * @param scale
1875
+ * @param axisX
1876
+ * @param axisY
1877
+ * @param axisZ
1878
+ * @returns
1879
+ */
1880
+ static startParticleFxNonLoopedOnPedBone(effectName, ped, offset, rot, boneIndex, scale, axisX, axisY, axisZ) {
1881
+ return inv('0x3FAA72BD940C3AC0', effectName, ped.handle, f(offset.x), f(offset.y), f(offset.z), f(rot.x), f(rot.y), f(rot.z), boneIndex, f(scale), axisX, axisY, axisZ, rai());
1882
+ }
1883
+ /**
1884
+ * contentId: returned by NETWORK::_UGC_QUERY_GET_CREATOR_PHOTO(uVar0, 0, sParam3)
1885
+ *
1886
+ * @param contentId
1887
+ * @returns
1888
+ */
1889
+ static getStatusOfLoadMissionCreatorPhoto(contentId) {
1890
+ return inv('0xC71B50AE58D07369', contentId, rai());
1891
+ }
1892
+ /**
1893
+ * @param p0
1894
+ */
1895
+ static N_0x6C03118E9E5C1A14(p0) {
1896
+ inv('0x6C03118E9E5C1A14', p0);
1897
+ }
2021
1898
  static resetPausedRenderphases() {
2022
1899
  inv('0xCCD9AAD85E1B559E');
2023
1900
  }
@@ -2128,4 +2005,127 @@ export class Graphics {
2128
2005
  static setCloudHeight(height) {
2129
2006
  inv('0xC332C91388F5580B', f(height));
2130
2007
  }
2008
+ /**
2009
+ * Related to Campfires.
2010
+ * p1: AMB_BONFIRE_MP, AMB_CAMPFIRE_LRG_MP
2011
+ *
2012
+ * @param entity
2013
+ * @param p1
2014
+ * @param r
2015
+ * @param g
2016
+ * @param b
2017
+ */
2018
+ static setParticleFxAmbientColour(entity, p1, r, g, b) {
2019
+ inv('0x3C61B52B00848C26', entity.handle, p1, f(r), f(g), f(b));
2020
+ }
2021
+ /**
2022
+ * Resets the effect of SET_PARTICLE_FX_OVERRIDE
2023
+ *
2024
+ * @param name
2025
+ */
2026
+ static resetParticleFxOverride(name) {
2027
+ inv('0x274B3DABF7E72DEF', name);
2028
+ }
2029
+ /**
2030
+ * must be called after ANIMPOSTFX_PLAY, strength 0.0f - 1.0f
2031
+ *
2032
+ * @param effectName
2033
+ * @param strength
2034
+ */
2035
+ static animpostfxSetStrength(effectName, strength) {
2036
+ inv('0xCAB4DD2D5B2B7246', effectName, f(strength));
2037
+ }
2038
+ /**
2039
+ * @param p0
2040
+ * @param p1
2041
+ * @param p2
2042
+ * @param p3
2043
+ * @param p4
2044
+ */
2045
+ static N_0xCC3B787E73E64160(p0, p1, p2, p3, p4) {
2046
+ inv('0xCC3B787E73E64160', p0, p1, p2, p3, p4);
2047
+ }
2048
+ /**
2049
+ * @param volume
2050
+ */
2051
+ static setTvVolume(volume) {
2052
+ inv('0x73A97068787D7231', f(volume));
2053
+ }
2054
+ /**
2055
+ * Creates a tracked point, useful for checking the visibility of a 3D point on screen.
2056
+ *
2057
+ * @returns
2058
+ */
2059
+ static createTrackedPoint() {
2060
+ return inv('0xFB405CB357C69CB9', rai());
2061
+ }
2062
+ /**
2063
+ * @param effectNameHash
2064
+ * @returns
2065
+ */
2066
+ static animpostfxIsPreloadingByStackhash(effectNameHash) {
2067
+ return inv('0x59EA80079B86D8C7', _h(effectNameHash));
2068
+ }
2069
+ /**
2070
+ * @param personaPhotoLocalCacheType
2071
+ */
2072
+ static N_0xA1A86055792FB249(personaPhotoLocalCacheType) {
2073
+ inv('0xA1A86055792FB249', personaPhotoLocalCacheType);
2074
+ }
2075
+ /**
2076
+ * @param p0
2077
+ */
2078
+ static setPhotoSelfStat(p0) {
2079
+ inv('0x2705D18C11B61046', p0);
2080
+ }
2081
+ /**
2082
+ * https://github.com/femga/rdr3_discoveries/blob/master/graphics/animpostfx
2083
+ *
2084
+ * @param effectName
2085
+ */
2086
+ static animpostfxPlay(effectName) {
2087
+ inv('0x4102732DF6B4005F', effectName);
2088
+ }
2089
+ /**
2090
+ * *DISABLE**
2091
+ */
2092
+ static N_0x4046493D2EEACA0E() {
2093
+ inv('0x4046493D2EEACA0E');
2094
+ }
2095
+ static pedshotPreviousPersonaPhotoDataCleanup() {
2096
+ inv('0x3E2FDDBE435A8787');
2097
+ }
2098
+ /**
2099
+ * effectName2, p2 and p3 are unused ANIMPOSTFX_*
2100
+ *
2101
+ * @param effectName
2102
+ * @param effectName2
2103
+ * @param p2
2104
+ * @param p3
2105
+ */
2106
+ static N_0x26DD2FB0A88CC412(effectName, effectName2, p2, p3) {
2107
+ inv('0x26DD2FB0A88CC412', effectName, effectName2, p2, p3);
2108
+ }
2109
+ /**
2110
+ * Example: https://pastebin.com/tTgpER9A
2111
+ *
2112
+ * @param slot
2113
+ * @param p1
2114
+ */
2115
+ static generateSwatchTextureDirectly(slot, p1) {
2116
+ inv('0x646ED1A1D28487DF', slot, p1);
2117
+ }
2118
+ /**
2119
+ * @param p0
2120
+ */
2121
+ static setParticleFxBulletImpactLodrangeScale(p0) {
2122
+ inv('0x8DCCC98DC0DBF9E4', f(p0));
2123
+ }
2124
+ /**
2125
+ * @param p0
2126
+ * @param p1
2127
+ */
2128
+ static N_0x1FF8731BE1DFC0C0(p0, p1) {
2129
+ inv('0x1FF8731BE1DFC0C0', p0, p1);
2130
+ }
2131
2131
  }