# VEHICLE::SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER

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

## Signature

```c
void SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER(Vehicle vehicle, BOOL owned);
```

## Parameters

- `vehicle` (`Vehicle`)
- `owned` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetVehicleHasBeenOwnedByPlayer(vehicle, owned)

-- always available, by hash
Citizen.InvokeNative(0xBB5A3FA8ED3979C5, vehicle, owned)
```

### JavaScript

```js
SetVehicleHasBeenOwnedByPlayer(vehicle, owned);

// by hash
Citizen.invokeNative('0xBB5A3FA8ED3979C5', vehicle, owned);
```

### C#

```csharp
Function.Call((Hash)0xBB5A3FA8ED3979C5, vehicle, owned);
```

*Sources: alloc8or RDR3 NativeDB.*
