@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.
Files changed (2) hide show
  1. package/natives_server.d.ts +20 -11
  2. package/package.json +1 -1
@@ -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
- * // Source GTA VC miss2 leak, matching constants for 0/2/4, testing
2710
- * // They use 10 in am_mp_property_int, don't know what it does atm.
2711
- * enum eCarLock {
2712
- * CARLOCK_NONE = 0,
2713
- * CARLOCK_UNLOCKED = 1,
2714
- * CARLOCK_LOCKED = 2,
2715
- * CARLOCK_LOCKOUT_PLAYER_ONLY = 3,
2716
- * CARLOCK_LOCKED_PLAYER_INSIDE = 4,
2717
- * CARLOCK_LOCKED_INITIALLY = 5,
2718
- * CARLOCK_FORCE_SHUT_DOORS = 6,
2719
- * CARLOCK_LOCKED_BUT_CAN_BE_DAMAGED = 7
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/server",
3
- "version": "2.0.7595-1",
3
+ "version": "2.0.7604-1",
4
4
  "description": "Typings for the CitizenFX server JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {