hey , je voulais savoir si c'était possible que avec le script licence plaque y avais moye qu'on puisse replaquer un véhicule voler
_plate = [] call max_immat_fnc_generateRandomPlate;
_vehicle setVariable ["vehicle_info_plate",_plate,true];
if (local _vehicle) then {
_vehicle setPlateNumber _plate;
};
[_vehicle,1] remoteExecCall ["max_immat_fnc_updatePlate",2];
_plate = [] call max_immat_fnc_generateRandomPlate;
_vehicle setVariable ["vehicle_info_plate",_plate,true];
if (local _vehicle) then {
_vehicle setPlateNumber _plate;
};
[_vehicle,1] remoteExecCall ["max_immat_fnc_updatePlate",2];
_var = _vehicle getVariable ["vehicle_info_owners",[]];
_oldinfos = ((_var select 0) select 0);
_newowner = getplayerUID player;
[_vehicle,_oldinfos,_newowner] remoteExecCall ["TON_fnc_changeowners",2];
//Coté life
params [
["_vehicle","_oldinfos","_newowner"];
];
if ((isNull _vehicle) || ((count _oldInfos) isEqualTo 0)) exitWith {};
_dbInfo = _vehicle getVariable ["dbInfo",[]];
if ((count _dbInfo) isEqualTo 0) exitWith {};
_plate = _dbInfo select 1;
_query = format ["UPDATE vehicles SET pid='%1' WHERE pid='%2' AND plate='%3'",_newowner,_oldinfos,_plate];
[_query,1] call DB_fnc_asyncCall;