@citizenfx/server 2.0.7595-1 → 2.0.7604-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_server.d.ts +20 -11
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -2706,18 +2706,27 @@ declare function SetVehicleDirtLevel(vehicle: number, dirtLevel: number): void;
|
|
|
2706
2706
|
declare function SetVehicleDoorBroken(vehicle: number, doorIndex: number, deleteDoor: boolean): void;
|
|
2707
2707
|
|
|
2708
2708
|
/**
|
|
2709
|
-
*
|
|
2710
|
-
*
|
|
2711
|
-
*
|
|
2712
|
-
*
|
|
2713
|
-
*
|
|
2714
|
-
*
|
|
2715
|
-
*
|
|
2716
|
-
*
|
|
2717
|
-
*
|
|
2718
|
-
*
|
|
2719
|
-
*
|
|
2709
|
+
* Locks the doors of a specified vehicle to a defined lock state, affecting how players and NPCs can interact with the vehicle.
|
|
2710
|
+
* ```
|
|
2711
|
+
* NativeDB Introduced: v323
|
|
2712
|
+
* ```
|
|
2713
|
+
* ```cpp
|
|
2714
|
+
* enum eVehicleLockState {
|
|
2715
|
+
* VEHICLELOCK_NONE = 0, // No specific lock state, vehicle behaves according to the game's default settings.
|
|
2716
|
+
* VEHICLELOCK_UNLOCKED = 1, // Vehicle is fully unlocked, allowing free entry by players and NPCs.
|
|
2717
|
+
* VEHICLELOCK_LOCKED = 2, // Vehicle is locked, preventing entry by players and NPCs.
|
|
2718
|
+
* VEHICLELOCK_LOCKOUT_PLAYER_ONLY = 3, // Vehicle locks out only players, allowing NPCs to enter.
|
|
2719
|
+
* VEHICLELOCK_LOCKED_PLAYER_INSIDE = 4, // Vehicle is locked once a player enters, preventing others from entering.
|
|
2720
|
+
* VEHICLELOCK_LOCKED_INITIALLY = 5, // Vehicle starts in a locked state, but may be unlocked through game events.
|
|
2721
|
+
* VEHICLELOCK_FORCE_SHUT_DOORS = 6, // Forces the vehicle's doors to shut and lock.
|
|
2722
|
+
* VEHICLELOCK_LOCKED_BUT_CAN_BE_DAMAGED = 7, // Vehicle is locked but can still be damaged.
|
|
2723
|
+
* VEHICLELOCK_LOCKED_BUT_BOOT_UNLOCKED = 8, // Vehicle is locked, but its trunk/boot remains unlocked.
|
|
2724
|
+
* VEHICLELOCK_LOCKED_NO_PASSENGERS = 9, // Vehicle is locked and does not allow passengers, except for the driver.
|
|
2725
|
+
* VEHICLELOCK_CANNOT_ENTER = 10 // Vehicle is completely locked, preventing entry entirely, even if previously inside.
|
|
2720
2726
|
* };
|
|
2727
|
+
* ```
|
|
2728
|
+
* @param vehicle The vehicle whose doors are to be locked.
|
|
2729
|
+
* @param doorLockStatus The lock state to apply to the vehicle's doors, see `eVehicleLockState`.
|
|
2721
2730
|
*/
|
|
2722
2731
|
declare function SetVehicleDoorsLocked(vehicle: number, doorLockStatus: number): void;
|
|
2723
2732
|
|