{"name":"needService","title":"needService","type":"command","url":"https://community.bistudio.com/wiki/needService","revid":377624,"updated":"2026-01-02T08:52:02Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"2.12"},"since":"arma3 2.12","arma3_since":"2.12","description":"Returns array with how much vehicle needs repairing, refueling and rearming.","syntaxes":[{"syntax":"needService vehicle","params":[{"name":"vehicle","type":"Object","type_expr":"Object"}],"returns":{"type":"Array","type_expr":"Array","description":"with [repair, refuel, rearm]. Values are in range 0..1: 0: no need, 1: maximum need","text":"Array with [repair, refuel, rearm]. Values are in range 0..1: 0: no need, 1: maximum need"},"form":"unary","right":{"text":"vehicle"}}],"examples":[{"code":["needService tank params [\"_needRepair\", \"_needRefuel\", \"_needRearm\"];"]},{"code":["onEachFrame { hintSilent str needService vehicle player };"]}],"see_also":["allowService","allowedService","needReload"]}