_query = format ["SELECT id, classname, pid, color, plate FROM vehicles WHERE pid='%1' AND alive='1' AND active='0' AND fourriere='1' AND side='%2' AND type='%3'",_pid,_side,_type];
if (_pid isEqualTo "all") then {
_idColumName = if ((getNumber (missionConfigFile >> "Max_Settings_Fourriere" >> "tonic_version")) isEqualTo 5) then {"pid"} else {"playerid"};
_query = format ["SELECT vehicles.id, vehicles.classname, vehicles.pid, vehicles.color, vehicles.plate, players.name FROM vehicles INNER JOIN players WHERE vehicles.alive='1' AND vehicles.active='0' AND vehicles.fourriere='1' AND vehicles.type='%1' AND...
_query = format ["SELECT id, classname, pid, color, plate FROM vehicles WHERE pid='%1' AND alive='1' AND active='0' AND fourriere='1' AND side='%2' AND type='%3'",_pid,_side,_type];
if (_pid isEqualTo "all") then {
_idColumName = if ((getNumber (missionConfigFile >> "Max_Settings_Fourriere" >> "tonic_version")) isEqualTo 5) then {"pid"} else {"playerid"};
_query = format ["SELECT vehicles.id, vehicles.classname, vehicles.pid, vehicles.color, vehicles.plate, players.name FROM vehicles INNER JOIN players WHERE vehicles.alive='1' AND vehicles.active='0' AND vehicles.fourriere='1' AND vehicles.type='%1' AND vehicles.pid=players.%2",_type,_idColumName];
};
_idColumName = if ((getNumber (missionConfigFile >> "Max_Settings_Fourriere" >> "tonic_version")) isEqualTo 5) then {"pid"} else {"playerid"};
_query = format ["SELECT vehicles.id, vehicles.classname, vehicles.pid, vehicles.color, vehicles.plate, players.name, players.phone_number FROM vehicles INNER JOIN players WHERE vehicles.pid='%1' AND vehicles.alive='1' AND vehicles.active='0' AND vehicles.fourriere='1' AND vehicles.side='%2' AND vehicles.type='%3' AND vehicles.pid=players.%4",_pid,_side,_type,_idColumName];
if (_pid isEqualTo "all") then {
_query = format ["SELECT vehicles.id, vehicles.classname, vehicles.pid, vehicles.color, vehicles.plate, players.name, players.phone_number FROM vehicles INNER JOIN players WHERE vehicles.alive='1' AND vehicles.active='0' AND vehicles.fourriere='1' AND vehicles.type='%1' AND vehicles.pid=players.%2",_type,_idColumName];
};
_query = format ["SELECT vehicles.id, vehicles.classname, vehicles.pid, vehicles.color, vehicles.plate, players.name FROM vehicles INNER JOIN players WHERE vehicles.alive='1' AND vehicles.active='0' AND vehicles.fourriere='1' AND vehicles.type='%1' AND players.name LIKE '%4%3%4' AND vehicles.pid=players.%2",_type,_idColumName,_name,"%"];
_query = format ["SELECT vehicles.id, vehicles.classname, vehicles.pid, vehicles.color, vehicles.plate, players.name, players.phone_number FROM vehicles INNER JOIN players WHERE vehicles.alive='1' AND vehicles.active='0' AND vehicles.fourriere='1' AND vehicles.type='%1' AND players.name LIKE '%4%3%4' AND vehicles.pid=players.%2",_type,_idColumName,_name,"%"];
"Numéro de téléphone du propriétaire : %5<br/>" +
, if ((_vehicleData select 6) != "0") then {(_vehicleData select 6)} else {"Pas de téléphone"}