/*
Author : Maxence
*/
if (local _this) then {
_license = _this getVariable ["vehicle_info_plate",""];
if !(_license in ["","0"]) then {
_licenseArr = _license splitString "";
{
_licenseChar = _x;
_licenseChar = toLower _licenseChar;
if !(_licenseChar 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 {
_licenseArr deleteAt _forEachIndex;
};
} forEach _licenseArr;
_licenseArr resize 7;
{
_licenseChar = _licenseArr select _forEachIndex;
if (isNil {_licenseChar}) then {_licenseChar = "";};
_licenseChar = toLower _licenseChar;
if (_licenseChar 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 {
_this setObjectTextureGlobal [_x,format ["\MrShounka_Car_Rework_Pack\MrShounka_Base\MrShounka_Plaque\MrShounka_Plaque_alphabet\%1.paa",_licenseChar]];
} else {
_this setObjectTextureGlobal [_x, ""];
};
} forEach [6,7,8,9,10,11,12];
};
};