# CFX::GET_VEHICLE_HOMING_LOCKON_STATE

- **Hash:** `0xFBDE9FD8`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVehicleHomingLockonState`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_HOMING_LOCKON_STATE

## Signature

```c
int GET_VEHICLE_HOMING_LOCKON_STATE(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`) — The vehicle to check.

## Returns

`int` — The lock on state.

## Description

*Source: Cfx.re native reference*

Gets the lock on state for the specified vehicle. See the client-side [GET_VEHICLE_HOMING_LOCKON_STATE](#\_0xE6B0E8CFC3633BF0) native for a description of lock on states.

## Usage

### Lua

```lua
local retval = GetVehicleHomingLockonState(vehicle)

-- always available, by hash
local retval = Citizen.InvokeNative(0xfbde9fd8, vehicle, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetVehicleHomingLockonState(vehicle);

// by hash
const retval = Citizen.invokeNative('0xfbde9fd8', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xfbde9fd8, vehicle);
```

*Sources: Cfx.re native reference.*
