{"name":"getFuelCargo","operator":null,"title":"getFuelCargo","type":"command","url":"https://community.bistudio.com/wiki/getFuelCargo","revid":364121,"updated":"2024-05-04T22:07:43Z","groups":["Vehicle Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.56"}],"since":{"game":"arma3","name":"Arma 3","version":"0.56"},"arma3_since":"0.56","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns the fuel amount (1 is full) in the cargo space of a refueling vehicle.\n\n> [!NOTE]\n> Since Arma 3 v1.96 the return value for vehicles that are not configured to have ability to refuel other vehicles is -1. (Prior to that the value was negative infinity)","syntaxes":[{"syntax":"getFuelCargo vehicle","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"}],"returns":{"type":"Number","types":["Number"],"description":"fuel cargo value, -1 if fuel cargo is not supported, 0 if the vehicle is !alive or isNull","text":"Number - fuel cargo value, -1 if fuel cargo is not supported, 0 if the vehicle is !alive or isNull"},"form":"unary","operator":null,"left":null,"right":{"text":"vehicle","types":["Object"]}}],"examples":[{"text":"```sqf\nvalue = getFuelCargo myVehicleName;\n```","code":["value = getFuelCargo myVehicleName;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setFuelCargo","getAmmoCargo","getRepairCargo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Vehicle Inventory","Introduced with Arma 3 version 0.56","Scripting Commands"]}