{"name":"allowService","operator":null,"title":"allowService","type":"command","url":"https://community.bistudio.com/wiki/allowService","revid":338347,"updated":"2023-02-28T14:43:36Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.12"}],"since":{"game":"arma3","name":"Arma 3","version":"2.12"},"arma3_since":"2.12","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"supply vehicle, i.e. ammo truck","types":["Object"],"since":null,"text":"vehicle: Object - supply vehicle, i.e. ammo truck"},{"name":"type","type":"Number","optional":false,"default":null,"description":"0: none, 1: auto, 2: manual, 3: both","types":["Number"],"since":null,"text":"type: Number - 0: none, 1: auto, 2: manual, 3: both"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"type","types":["Number"]}}],"examples":[{"text":"```sqf\nammoTruck allowService 0;\n```","code":["ammoTruck allowService 0;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["allowedService","needService"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.12","Scripting Commands","Scripting Commands: Global Effect"]}