{"hash":"0x4CDD35D0","ns":"CFX","name":"SET_VEHICLE_DOORS_LOCKED","slug":"SET_VEHICLE_DOORS_LOCKED","official":true,"named":true,"luaName":"SetVehicleDoorsLocked","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"vehicle","type":"Vehicle","description":"The vehicle whose doors are to be locked."},{"name":"doorLockStatus","type":"int","description":"The lock state to apply to the vehicle's doors, see `eVehicleLockState`."}],"summary":"Locks the doors of a specified vehicle to a defined lock state, affecting how players and NPCs can interact with the vehicle.","descriptions":[{"source":"cfx","format":"md","body":"Locks the doors of a specified vehicle to a defined lock state, affecting how players and NPCs can interact with the vehicle.\n\n```\nNativeDB Introduced: v323\n```\n\n```cpp\nenum eVehicleLockState {\n// No specific lock state, vehicle behaves according to the game's default settings.\nVEHICLELOCK_NONE = 0,\n// Vehicle is fully unlocked, allowing free entry by players and NPCs.\nVEHICLELOCK_UNLOCKED = 1,\n// Vehicle is locked, preventing entry by players and NPCs.\nVEHICLELOCK_LOCKED = 2,\n// Vehicle locks out only players, allowing NPCs to enter.\nVEHICLELOCK_LOCKOUT_PLAYER_ONLY = 3,\n// Vehicle is locked once a player enters, preventing others from entering.\nVEHICLELOCK_LOCKED_PLAYER_INSIDE = 4,\n// Vehicle starts in a locked state, but may be unlocked through game events.\nVEHICLELOCK_LOCKED_INITIALLY = 5,\n// Forces the vehicle's doors to shut and lock.\nVEHICLELOCK_FORCE_SHUT_DOORS = 6,\n// Vehicle is locked but can still be damaged.\nVEHICLELOCK_LOCKED_BUT_CAN_BE_DAMAGED = 7,\n// Vehicle is locked, but its trunk/boot remains unlocked.\nVEHICLELOCK_LOCKED_BUT_BOOT_UNLOCKED = 8,\n// Vehicle is locked and does not allow passengers, except for the driver.\nVEHICLELOCK_LOCKED_NO_PASSENGERS = 9,\n// Vehicle is completely locked, preventing entry entirely, even if previously inside.\nVEHICLELOCK_CANNOT_ENTER = 10\n};\n```\n\n**This is the server-side RPC native equivalent of the client native [SET_VEHICLE_DOORS_LOCKED](?\\_0xB664292EAECF7FA6).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_VEHICLE_DOORS_LOCKED","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_VEHICLE_DOORS_LOCKED.md","snippets":{"lua":"SetVehicleDoorsLocked(vehicle, doorLockStatus)","luaInvoke":"Citizen.InvokeNative(0x4cdd35d0, vehicle, doorLockStatus)","js":"SetVehicleDoorsLocked(vehicle, doorLockStatus);","jsInvoke":"Citizen.invokeNative('0x4cdd35d0', vehicle, doorLockStatus);","csharp":"Function.Call((Hash)0x4cdd35d0, vehicle, doorLockStatus);","notes":[]}}