{"name":"allowService","title":"allowService","type":"command","url":"https://community.bistudio.com/wiki/allowService","revid":338347,"updated":"2023-02-28T14:43:36Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"2.12"},"since":"arma3 2.12","arma3_since":"2.12","locality":{"argument":"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.\nThe engine default is both (manual and auto) for historic reasons.","syntaxes":[{"syntax":"vehicle allowService type","params":[{"name":"vehicle","type":"Object","description":"supply vehicle, i.e. ammo truck","type_expr":"Object"},{"name":"type","type":"Number","description":"0: none, 1: auto, 2: manual, 3: both","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"type"}}],"examples":[{"code":["ammoTruck allowService 0;"]}],"see_also":["allowedService","needService"]}