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

# allowedService

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

Locality: arguments **global**

## Description

Returns which types of repair/refuel/rearm service are 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
allowedService vehicle
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - supply vehicle, i.e. ammo truck

**Returns:** [Number](../topics/Number.md) - 0: none, 1: auto, 2: manual, 3: both, -1: unsupported

## Examples

### Example 1

```sqf
if (allowedService _vehicle == -1) then { hint "this is not a service vehicle!" };
```

## See also

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

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