@citizenfx/client 2.0.6256-1 → 2.0.6257-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.
@@ -34789,6 +34789,16 @@ declare function SetRunSprintMultiplierForPlayer(player: number, multiplier: num
34789
34789
 
34790
34790
  declare function SetRuntimeTextureArgbData(tex: number, buffer: string, length: number): boolean;
34791
34791
 
34792
+ /**
34793
+ * Replaces the pixel data in a runtime texture with the image data from a file in the current resource, or a data URL.
34794
+ * If the bitmap is a different size compared to the existing texture, it will be resampled.
34795
+ * This command may end up executed asynchronously, and only update the texture data at a later time.
34796
+ * @param tex A runtime texture handle.
34797
+ * @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.
34798
+ * @return TRUE for success, FALSE for failure.
34799
+ */
34800
+ declare function SetRuntimeTextureImage(tex: number, fileName: string): boolean;
34801
+
34792
34802
  /**
34793
34803
  * Sets a pixel in the specified runtime texture. This will have to be committed using `COMMIT_RUNTIME_TEXTURE` to have any effect.
34794
34804
  * @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.6257-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {