Welcome to this tutorial that will allow you to notify a player that he does not have a license plate when unimpounding his car from the garage.
This tutorial is a follow to the request for help from Zomblard.
This tutorial is a follow to the request for help from Zomblard.
Let's go !
In your life_server/Functions/Systems/fn_spawnVehicle.sqf, replace this line :
Code:
[_vid,_pid,_vehicle] remoteExec ["max_immat_fnc_initVehicleImmatriculation",2];
Code:
[_vid,_pid,_vehicle,_unit] remoteExec ["max_immat_fnc_initVehicleImmatriculation",2];
In your @The_Programmer/addons/license_plate/server/fn_initVehicleImmatriculation.sqf, replace these lines :
Code:
params [
["_vid",-1,[0]],
["_pid","",[""]],
["_vehicle",objNull,[objNull]]
];
Code:
params [
["_vid",-1,[0]],
["_pid","",[""]],
["_vehicle",objNull,[objNull]],
["_unit",-1,[0]]
];
Always in the same file, in the condition :
Code:
if (_immatriculation == "0") then {
Code:
[1,"ATTENTION : Votre véhicule n'est pas immatriculé. Vous encourez une amende de 500€ !"] remoteExecCall ["life_fnc_broadcast",_unit];
Here we go !
Sincerely,
Forum Manager - Mathis