---
name: "allowService"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "2.12"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/allowService
revid: 338347
updated: 2023-02-28T14:43:36Z
---

# allowService

*Command · Object Manipulation · Arma 3 v2.12*

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

## Description

Sets which type of repair/refuel/rearm service is allowed. The two available types are manual, where the action is displayed to the user, and auto, where the service happens within distance.
The engine default is both (manual and auto) for historic reasons.

## Syntax

```sqf
vehicle allowService type
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - supply vehicle, i.e. ammo truck
- `type`: [Number](../topics/Number.md) - 0: none, 1: auto, 2: manual, 3: both

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

## Examples

### Example 1

```sqf
ammoTruck allowService 0;
```

## See also

[allowedService](../commands/allowedService.md) · [needService](../commands/needService.md)

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