---
name: "setPlateNumber"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.82"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setPlateNumber
revid: 353037
updated: 2024-03-12T11:54:25Z
---

# setPlateNumber

*Command · Object Manipulation · Arma 3 v1.82*

Locality: arguments **local** · effect **global**

## Description

Change the license plates on any vehicle which has plates configured. Max 15 characters are allowed!

## Syntax

```sqf
vehicle setPlateNumber string
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `string`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
vehicle player setPlateNumber "K2000";
```

### Example 2

Reset plate to the world's randomised template:

```sqf
private _return = "";
private _cfg = (configFile >> "CfgWorlds" >> worldName);

{
    _return = _return + (call {
        if (_x == "$") exitWith {
            selectRandom (getText (_cfg >> "plateLetters") splitString "")
        };
        if (_x == "#") exitWith {
            selectRandom ["0","1","2","3","4","5","6","7","8","9"]
        };
        _x
    });
} forEach (getText (_cfg >> "plateFormat") splitString "");

_car setPlateNumber _return;
```

## See also

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

## Community notes

**Demellion** — 2018-04-19

**NOTICE**: If this command is performed where the argument is remote, the plate will change and [getPlateNumber](../commands/getPlateNumber.md) will also return the new value, until vehicle owner sync it back to original in ~10 seconds after.

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