SalutSalut !
Lors de l'achat du véhicule ou du changement de la plaque ?
Pourtant dans le F10_12 j'ai bien fn_setlicense et dans le d3s_cars_core aussiJ'ai vérifier les deux mods à modifier :
- @modpack/addons/d3s_cars_core/functions/vehicle/fn_setlicense.sqf
- @modpack/addons/d3s_f10_12/functions/vehicle/fn_setlicense.sqf
Mais dans aucun des deux tu as mis le fn_setlicense.sqf que tu m'as envoyé plus haut. Il faut décompiler le pbo (avec PboManager par exemple), modifier le fichier, recompiler le pbo, puis mettre à jour ton modpack.
Tu n'as probablement pas ce fn_setlicense.sqf sur ton jeu, ce qui explique que tu ne voies pas la plaque comme elle devrait l'être
Remplacer le fichier @modpack/addons/d3s_cars_core/functions/vehicle/fn_setlicense.sqf par :
Code:/* Author : Maxence */ _vehicle = param [0,objNull,[objNull]]; if !(local _vehicle) exitWith {false}; _license = _vehicle 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 { _vehicle setObjectTextureGlobal [_x,format ["d3s_cars_core\license\%1.paa",_licenseChar]]; } else { _vehicle setObjectTextureGlobal [_x, ""]; }; } forEach [20,21,22,23,24,25,26]; } else { { _vehicle setObjectTextureGlobal [_x, ""]; } forEach [20,21,22,23,24,25,26]; }; true;
Remplacer le fichier @modpack/addons/d3s_f10_12/functions/vehicle/fn_setlicense.sqf par :
Code:/* Author : Maxence */ _vehicle = param [0,objNull,[objNull]]; if !(local _vehicle) exitWith {false}; _license = _vehicle 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 { _vehicle setObjectTextureGlobal [_x,format ["d3s_cars_core\license\%1.paa",_licenseChar]]; } else { _vehicle setObjectTextureGlobal [_x, ""]; }; } forEach [20,21,22,23,24,25,26]; } else { { _vehicle setObjectTextureGlobal [_x, ""]; } forEach [20,21,22,23,24,25,26]; }; true;