/*
File: fn_CheckAssurance.sqf
Author: BastienWolf
Description:
Check If vehicle have a insure !
*/
_vehicle = param [0,objNull,[objNull]];
if (isNull _vehicle) exitWith {};
_insureStatus = _vehicle getVariable ["vehicle_insure_status",0];
if (_insureStatus isEqualTo 1) then {
hint "Véhicule Assuré";
} else {
hint "Le Véhicule n'est pas assuré";
};
_Btn2 ctrlSetText "Vérifier Assurance";
_Btn2 buttonSetAction "[life_vInact_curTarget] spawn life_fnc_CheckAssurance; closeDialog 0;";
#include "..\..\script_macros.hpp"
/*
File: fn_CheckAssurance.sqf
Author: BastienWolf
Description:
Check If vehicle have a insure !
*/
_vehicle = _this select 0;
_list = ["Air","Ship","LandVehicle"];
if (isNull _vehicle || {!(KINDOF_ARRAY(_vehicle,_list))}) exitWith {};
_insureStatus = _vehicule getVariable ["vehicle_insure_status",0];
if (_insureStatus isEqualTo 1) then { hint "Véhicule Assuré";} else { hint "Le Véhicule n'est pas assuré";};
/*
File: fn_CheckAssurance.sqf
Author: BastienWolf
Description:
Check If vehicle have a insure !
*/
_vehicle = param [0,objNull,[objNull]];
if (isNull _vehicle) exitWith {};
_insureStatus = _vehicle getVariable ["vehicle_insure_status",0];
if (_insureStatus isEqualTo 1) then {
hint "Véhicule Assuré";
} else {
hint "Le Véhicule n'est pas assuré";
};