# VEHICLE::SET_VEHICLE_CAN_BE_TARGETTED

- **Hash:** `0x05254BA0B44ADC16`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetVehicleCanBeTargetted`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_CAN_BE_TARGETTED

## Signature

```c
void SET_VEHICLE_CAN_BE_TARGETTED(Vehicle vehicle, BOOL state);
```

## Parameters

- `vehicle` (`Vehicle`)
- `state` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetVehicleCanBeTargetted(vehicle, state)

-- always available, by hash
Citizen.InvokeNative(0x05254BA0B44ADC16, vehicle, state)
```

### JavaScript

```js
SetVehicleCanBeTargetted(vehicle, state);

// by hash
Citizen.invokeNative('0x05254BA0B44ADC16', vehicle, state);
```

### C#

```csharp
Function.Call((Hash)0x05254BA0B44ADC16, vehicle, state);
```

*Sources: alloc8or RDR3 NativeDB.*
