{"hash":"0xD72CEF2","ns":"CFX","name":"GET_VEHICLE_DOOR_LOCK_STATUS","slug":"GET_VEHICLE_DOOR_LOCK_STATUS","official":true,"named":true,"luaName":"GetVehicleDoorLockStatus","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"vehicle","type":"Vehicle","description":"A vehicle handle."}],"returnsDescription":"The door lock status for the specified vehicle.","summary":"It should be noted that while the client-side command and its setter distinguish between states 0 (unset) and 1 (unlocked), the game will synchronize both as state 0, so the server-side command will return only '0' if unlocked.","descriptions":[{"source":"cfx","format":"md","body":"```lua\nenum_VehicleLockStatus = {\n    None = 0,\n    Locked = 2,\n    LockedForPlayer = 3,\n    StickPlayerInside = 4, -- Doesn't allow players to exit the vehicle with the exit vehicle key.\n    CanBeBrokenInto = 7, -- Can be broken into the car. If the glass is broken, the value will be set to 1\n    CanBeBrokenIntoPersist = 8, -- Can be broken into persist\n    CannotBeTriedToEnter = 10, -- Cannot be tried to enter (Nothing happens when you press the vehicle enter key).\n}\n```\n\nIt should be [noted](https://forum.cfx.re/t/4863241) that while the [client-side command](#\\_0x25BC98A59C2EA962) and its\nsetter distinguish between states 0 (unset) and 1 (unlocked), the game will synchronize both as state 0, so the server-side\ncommand will return only '0' if unlocked."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_DOOR_LOCK_STATUS","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_DOOR_LOCK_STATUS.md","snippets":{"lua":"local retval = GetVehicleDoorLockStatus(vehicle)","luaInvoke":"local retval = Citizen.InvokeNative(0xd72cef2, vehicle, Citizen.ResultAsInteger())","js":"const retval = GetVehicleDoorLockStatus(vehicle);","jsInvoke":"const retval = Citizen.invokeNative('0xd72cef2', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xd72cef2, vehicle);","notes":[]}}