---
name: "setVehicleId"
type: command
status: broken
groups: ["Object Manipulation", "Broken Commands"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setVehicleId
revid: 364524
updated: 2024-05-16T20:46:23Z
---

# setVehicleId

*Command · Object Manipulation, Broken Commands · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

> [!WARNING]
> This command is listed as broken on the wiki.

## Description

Sets ID to vehicle. By this ID vehicle is referenced by triggers and waypoints.

> [!WARNING]
> This command is **not** to be used.

## Syntax

```sqf
vehicleName setVehicleId id
```

**Parameters:**

- `vehicleName`: [Object](../topics/Object.md)
- `id`: [Number](../topics/Number.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player setVehicleId 1;
```

## See also

[setVehicleVarName](../commands/setVehicleVarName.md)

<sub>Source: [BI Community Wiki — setVehicleId](https://community.bistudio.com/wiki/setVehicleId) (revision 364524).</sub>
