Français Solved Problème d'affichage des lettres sur les véhicules D3S

  • Auteur de la discussion Auteur de la discussion BastienWolf
  • Date de début Date de début
29/12/19
320
45
61
1 100
25
Bonjour.

J'ai vu que D3S avais mis ces véhicules à jour et avais ajouté l'affichage des lettres sur ses véhicules.
Malheureusement impossible d'afficher les lettres ...

J'ai beau essayer rien ne fonctionne.

Voici le lien des mods de D3S véhicule : https://steamcommunity.com/workshop/filedetails/?l=french&id=1641826228

Dans le D3S_Core_mod.pbo, il à ajouté un paa pour chaque lettre de l'alphabet.

J'ai bien essayé de les afficher en vain.
Si quelqu'un à une solution :D
 
Solution
Salut !

Dans ton @The_Programmer/addons/license_plates/client/fn_vehicleBuyImmatriculation.sqf ajoute à la fin du fichier :
Code:
[_vehicle] call d3s_fnc_setLicense;

Dans ton @The_Programmer/addons/license_plates/server/fn_initVehicleImmatriculation.sqf ajoute à la fin du fichier :
Code:
[_vehicle] call d3s_fnc_setLicense;

Dans ton @The_Programmer/addons/license_plates/server/fn_updatePlate.sqf ajoute à la fin du fichier :
Code:
[_vehicle] call d3s_fnc_setLicense;

Remplace 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...
Salut !

Dans ton @The_Programmer/addons/license_plates/client/fn_vehicleBuyImmatriculation.sqf ajoute à la fin du fichier :
Code:
[_vehicle] call d3s_fnc_setLicense;

Dans ton @The_Programmer/addons/license_plates/server/fn_initVehicleImmatriculation.sqf ajoute à la fin du fichier :
Code:
[_vehicle] call d3s_fnc_setLicense;

Dans ton @The_Programmer/addons/license_plates/server/fn_updatePlate.sqf ajoute à la fin du fichier :
Code:
[_vehicle] call d3s_fnc_setLicense;

Remplace 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;

Remplace 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;

Dis-moi si ça fonctionne, j'ai pas eu le temps de tester 😅
 
Solution