@citizenfx/client 2.0.6256-1 → 2.0.6259-1

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.
@@ -5138,6 +5138,20 @@ declare function DrawLightWithRangeWithShadow(x: number, y: number, z: number, r
5138
5138
  */
5139
5139
  declare function DrawLine(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, red: number, green: number, blue: number, alpha: number): void;
5140
5140
 
5141
+ /**
5142
+ * Like DRAW_RECT, but it's a line.
5143
+ * @param x1 First x.
5144
+ * @param y1 First y.
5145
+ * @param x2 Second x.
5146
+ * @param y2 Second y.
5147
+ * @param width Width of line.
5148
+ * @param r Red.
5149
+ * @param g Green.
5150
+ * @param b Blue.
5151
+ * @param a Alpha.
5152
+ */
5153
+ declare function DrawLine_2d(x1: number, y1: number, x2: number, y2: number, width: number, r: number, g: number, b: number, a: number): void;
5154
+
5141
5155
  declare function DrawLowQualityPhotoToPhone(p0: boolean, p1: boolean): void;
5142
5156
  declare function N_0x1072f115dab0717e(p0: boolean, p1: boolean): void;
5143
5157
 
@@ -5220,6 +5234,11 @@ declare function DrawPoly(x1: number, y1: number, z1: number, x2: number, y2: nu
5220
5234
  */
5221
5235
  declare function DrawRect(x: number, y: number, width: number, height: number, r: number, g: number, b: number, a: number): void;
5222
5236
 
5237
+ /**
5238
+ * DRAW_RECT, but with a rotation. Seems to be broken.
5239
+ */
5240
+ declare function DrawRectRotated(x: number, y: number, width: number, height: number, rotation: number, r: number, g: number, b: number, a: number): void;
5241
+
5223
5242
  declare function DrawScaleformMovie(scaleformHandle: number, x: number, y: number, width: number, height: number, red: number, green: number, blue: number, alpha: number, unk: number): void;
5224
5243
 
5225
5244
  /**
@@ -34789,6 +34808,16 @@ declare function SetRunSprintMultiplierForPlayer(player: number, multiplier: num
34789
34808
 
34790
34809
  declare function SetRuntimeTextureArgbData(tex: number, buffer: string, length: number): boolean;
34791
34810
 
34811
+ /**
34812
+ * Replaces the pixel data in a runtime texture with the image data from a file in the current resource, or a data URL.
34813
+ * If the bitmap is a different size compared to the existing texture, it will be resampled.
34814
+ * This command may end up executed asynchronously, and only update the texture data at a later time.
34815
+ * @param tex A runtime texture handle.
34816
+ * @param fileName The file name of an image to load, or a base64 "data:" URL. This should preferably be a PNG, and has to be specified as a `file` in the resource manifest.
34817
+ * @return TRUE for success, FALSE for failure.
34818
+ */
34819
+ declare function SetRuntimeTextureImage(tex: number, fileName: string): boolean;
34820
+
34792
34821
  /**
34793
34822
  * Sets a pixel in the specified runtime texture. This will have to be committed using `COMMIT_RUNTIME_TEXTURE` to have any effect.
34794
34823
  * @param tex A handle to the runtime texture.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.6256-1",
3
+ "version": "2.0.6259-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {