Bonjour, et bienvenue sur ce tutoriel qui vous permettra de changer les plaques des véhicules de Shounka.
Ce tutoriel fais suite à la demande d'aide de
cjeje84
C'est parti !Ce tutoriel fais suite à la demande d'aide de

Dans votre mission, peut importe le dossier, créer un fichier nommé fn_updateShounkaPlate.sqf et définissez le dans votre Functions.hpp.
Dans le fichier, inséré le code suivant :
Code:
/*
Author: Maxence for The Programmer Forum
*/
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];
};
};
Dans les fichiers suivants @The_Programmer/addons/license_plates/client/
- fn_vehicleBuyImmatriculation.sqf
- fn_newPlate.sqf
- fn_maskPlate.sqf
- fn_customPlateConfirm.sqf
- fn_initVehicleImmatriculation.sqf
- fn_updatePlate.sqf
Code:
_vehicle call life_fnc_updateShounkaPlate;
Et remplacer votre MrShounka_Plaque.sqf par cette ligne uniquement :
Code:
_this call life_fnc_updateShounkaPlate;
Et voila, tout est normalement fonctionnel !
Cordialement,
Forum Manager Loic Shmit, avec la collaboration de

Dernière édition par un modérateur: