---
name: "BIS_fnc_exportVehicle"
type: function
status: ok
groups: ["Vehicles"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_exportVehicle
revid: 363634
updated: 2024-04-08T21:57:47Z
---

# BIS_fnc_exportVehicle

*Function · Vehicles · Arma 3 v1.00*

## Description

Export vehicle settings

## Syntax

```sqf
[vehicle,vehicleClass] call BIS_fnc_exportVehicle
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `vehicleClass`: [String](../topics/String.md) - use "" to skip createVehicle part and set components / textures only

**Returns:** [String](../topics/String.md) - [SQF](../topics/SQF_Syntax.md) code

## Examples

### Example 1

```sqf
[BIS_tank,""] call BIS_fnc_exportVehicle;

//Returns 
"[
  _this,
  [""Hex"",1], 
  [""showCamonetHull"",1,""showCamonetTurret"",1]
] call BIS_fnc_initVehicle;"
```

### Example 2

```sqf
[BIS_tank] call BIS_fnc_exportVehicle;

//Returns 
"_veh = createVehicle [""O_MBT_04_cannon_F"",position player,[],0,""NONE""];
[
  _veh,
  [""Hex"",1], 
  [""showCamonetHull"",1,""showCamonetTurret"",1]
] call BIS_fnc_initVehicle;"
```

## See also

[BIS_fnc_initVehicle](../functions/BIS_fnc_initVehicle.md) · Arma 3: Vehicle Customisation

<sub>Source: [BI Community Wiki — BIS fnc exportVehicle](https://community.bistudio.com/wiki/BIS_fnc_exportVehicle) (revision 363634).</sub>
