/*
Author : Maxence
*/
_vehicle = param [0,objNull,[objNull]];
if (isNull _vehicle) exitWith {};
_plate = _vehicle getVariable ["vehicle_info_plate","0"];
if !(_plate in ["","0"]) then {
if ((count _plate) > 15) then {
_plate = (["STR_RENTAL_PLATE","Max_Settings_Immatriculation","Immatriculation_Localization"] call theprogrammer_core_fnc_localize);
};
_plateArr = _plate splitString "";
{
_plateChar = _x;
_plateChar = toUpper _plateChar;
if !(_plateChar in ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]) then {
_plateArr deleteAt _forEachIndex;
};
} forEach _plateArr;
_plateArr resize 7;
{
_plateChar = _plateArr select _forEachIndex;
if (isNil {_plateChar}) then {_plateChar = "";};
_plateChar = toUpper _plateChar;
_vehicle setObjectTextureGlobal [_x,format ["Charlieco89_Base\Lettre\%1.paa",_plateChar]];
} forEach [12,13,14,15,16,17,18];
} else {
{
_vehicle setObjectTextureGlobal [_x, ""];
} forEach [12,13,14,15,16,17,18];
};