{"hash":"0x4A557117","ns":"CFX","name":"GET_VEHICLE_LOCK_ON_TARGET","slug":"GET_VEHICLE_LOCK_ON_TARGET","official":true,"named":true,"luaName":"GetVehicleLockOnTarget","game":"cfx","apiset":"server","returnType":"Vehicle","params":[{"name":"vehicle","type":"Vehicle","description":"The vehicle to check."}],"returnsDescription":"The vehicle that is locked on. 0 returned if no vehicle is locked on.","summary":"Gets the vehicle that is locked on to for the specified vehicle.","descriptions":[{"source":"cfx","format":"md","body":"Gets the vehicle that is locked on to for the specified vehicle."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_LOCK_ON_TARGET","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_LOCK_ON_TARGET.md","snippets":{"lua":"local retval = GetVehicleLockOnTarget(vehicle)","luaInvoke":"local retval = Citizen.InvokeNative(0x4a557117, vehicle, Citizen.ResultAsInteger())","js":"const retval = GetVehicleLockOnTarget(vehicle);","jsInvoke":"const retval = Citizen.invokeNative('0x4a557117', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x4a557117, vehicle);","notes":[]}}