@citizenfx/client 2.0.8085-1 → 2.0.8101-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 +52 -0
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -18446,6 +18446,52 @@ declare function GetVehicleTrailerVehicle(vehicle: number, trailer?: number): [b
|
|
|
18446
18446
|
*/
|
|
18447
18447
|
declare function GetVehicleTurboPressure(vehicle: number): number;
|
|
18448
18448
|
|
|
18449
|
+
/**
|
|
18450
|
+
* Returns the type of the passed vehicle.
|
|
18451
|
+
* For client scripts, reference the more detailed [GET_VEHICLE_TYPE_RAW](#\_0xDE73BC10) native.
|
|
18452
|
+
* ### Vehicle types
|
|
18453
|
+
* * automobile
|
|
18454
|
+
* * bike
|
|
18455
|
+
* * boat
|
|
18456
|
+
* * heli
|
|
18457
|
+
* * plane
|
|
18458
|
+
* * submarine
|
|
18459
|
+
* * trailer
|
|
18460
|
+
* * train
|
|
18461
|
+
* @param vehicle The vehicle's entity handle.
|
|
18462
|
+
* @return If the entity is a vehicle, the vehicle type. If it is not a vehicle, the return value will be null.
|
|
18463
|
+
*/
|
|
18464
|
+
declare function GetVehicleType(vehicle: number): string;
|
|
18465
|
+
|
|
18466
|
+
/**
|
|
18467
|
+
* Returns the model type of the vehicle as defined by:
|
|
18468
|
+
* ```cpp
|
|
18469
|
+
* enum VehicleType
|
|
18470
|
+
* {
|
|
18471
|
+
* VEHICLE_TYPE_NONE = -1,
|
|
18472
|
+
* VEHICLE_TYPE_CAR = 0,
|
|
18473
|
+
* VEHICLE_TYPE_PLANE = 1,
|
|
18474
|
+
* VEHICLE_TYPE_TRAILER = 2,
|
|
18475
|
+
* VEHICLE_TYPE_QUADBIKE = 3,
|
|
18476
|
+
* VEHICLE_TYPE_DRAFT = 4,
|
|
18477
|
+
* VEHICLE_TYPE_SUBMARINECAR = 5,
|
|
18478
|
+
* VEHICLE_TYPE_AMPHIBIOUS_AUTOMOBILE = 6,
|
|
18479
|
+
* VEHICLE_TYPE_AMPHIBIOUS_QUADBIKE = 7,
|
|
18480
|
+
* VEHICLE_TYPE_HELI = 8,
|
|
18481
|
+
* VEHICLE_TYPE_BLIMP = 9,
|
|
18482
|
+
* VEHICLE_TYPE_AUTOGYRO = 10,
|
|
18483
|
+
* VEHICLE_TYPE_BIKE = 11,
|
|
18484
|
+
* VEHICLE_TYPE_BICYCLE = 12,
|
|
18485
|
+
* VEHICLE_TYPE_BOAT = 13,
|
|
18486
|
+
* VEHICLE_TYPE_TRAIN = 14,
|
|
18487
|
+
* VEHICLE_TYPE_SUBMARINE = 15,
|
|
18488
|
+
* };
|
|
18489
|
+
* ```
|
|
18490
|
+
* @param vehicle The vehicle's entity handle.
|
|
18491
|
+
* @return Returns the vehicles model type
|
|
18492
|
+
*/
|
|
18493
|
+
declare function GetVehicleTypeRaw(vehicle: number): number;
|
|
18494
|
+
|
|
18449
18495
|
/**
|
|
18450
18496
|
* GET_VEHICLE_TYRE_SMOKE_COLOR
|
|
18451
18497
|
*/
|
|
@@ -53564,6 +53610,12 @@ declare function SetVehicleNeonLightsColour(vehicle: number, r: number, g: numbe
|
|
|
53564
53610
|
*/
|
|
53565
53611
|
declare function SetVehicleNitroEnabled(vehicle: number, toggle: boolean): void;
|
|
53566
53612
|
|
|
53613
|
+
/**
|
|
53614
|
+
* Sets the maximum distance in which [\_SET_VEHICLE_NITRO_ENABLED](#\_0xC8E9B6B71B8E660D) PTFX are rendered. Distance is measured from the camera position.
|
|
53615
|
+
* @param range The visible distance. Default is 50.0f.
|
|
53616
|
+
*/
|
|
53617
|
+
declare function SetVehicleNitroPtfxRange(range: number): void;
|
|
53618
|
+
|
|
53567
53619
|
/**
|
|
53568
53620
|
* SET_VEHICLE_NUMBER_PLATE_TEXT
|
|
53569
53621
|
* @param vehicle The vehicle to set the plate for
|