Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _license = _this select 0;
- _status = _this select 1;
- _object = _this select 2;
- _player = _this select 3;
- _information = _object getVariable "information";
- if (isNil "_information") exitwith {
- deletevehicle _object;
- };
- _exit = false;
- if (_status == 0) then {
- _license = _information select 0;
- _carowner = _information select 8;
- if (isNil "_carowner") exitwith {_exit = true;};
- {if (getplayeruid _x == _carowner) exitwith { _player = _x; }; } foreach playableunits;
- deletevehicle _object;
- };
- if (_exit) exitwith { deletevehicle _object; };
- _updatestr = format["updateCarStatus:%1:%2", _status, _license];
- _update = [0, _updatestr] call ExternalS_fnc_ExtDBquery;
- if (_status == 0) then {
- _information SET[7, 0];
- ["garage", _information] remoteExec["client_fnc_setVariable", _player];
- deletevehicle _object;
- } else {
- _information SET[7, 1];
- _currentCars = _player getvariable "usedgarage";
- _currentCars pushback _information;
- _player setvariable["usedgarage", _currentCars, false];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement