@citizenfx/client 2.0.4889-1 → 2.0.4916-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.
- package/natives_universal.d.ts +17 -0
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -28206,6 +28206,23 @@ declare function SetWavesIntensity(intensity: number): void;
|
|
|
28206
28206
|
*/
|
|
28207
28207
|
declare function SetCurrentIntensity(intensity: number): void;
|
|
28208
28208
|
|
|
28209
|
+
/**
|
|
28210
|
+
* Sets the default number plate text pattern for vehicles seen on the local client with the specified plate index as their *default* index (`plateProbabilities` from carvariations).
|
|
28211
|
+
* For consistency, this should be used with the same value on all clients, since vehicles *without* custom text will use a seeded random number generator with this pattern to determine the default plate text.
|
|
28212
|
+
* The default value is `11AAA111`, and using this or a NULL string will revert to the default game RNG.
|
|
28213
|
+
* ### Pattern string format
|
|
28214
|
+
* * `1` will lead to a random number from 0-9.
|
|
28215
|
+
* * `A` will lead to a random letter from A-Z.
|
|
28216
|
+
* * `.` will lead to a random letter *or* number, with 50% probability of being either.
|
|
28217
|
+
* * `^1` will lead to a literal `1` being emitted.
|
|
28218
|
+
* * `^A` will lead to a literal `A` being emitted.
|
|
28219
|
+
* * Any other character will lead to said character being emitted.
|
|
28220
|
+
* * A string shorter than 8 characters will be padded on the right.
|
|
28221
|
+
* @param plateIndex A plate index, or `-1` to set a default for any indices that do not have a specific value.
|
|
28222
|
+
* @param pattern A number plate pattern string, or a null value to reset to default.
|
|
28223
|
+
*/
|
|
28224
|
+
declare function SetDefaultVehicleNumberPlateTextPattern(plateIndex: number, pattern: string): void;
|
|
28225
|
+
|
|
28209
28226
|
/**
|
|
28210
28227
|
* Only used with the "akula" and "annihilator2" in the decompiled native scripts.
|
|
28211
28228
|
* ```
|