Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_unimpound.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Yeah... Gets the vehicle from the garage.
- */
- private["_vehicle","_vid","_pid","_unit","_price"];
- disableSerialization;
- if(lbCurSel 2802 == -1) exitWith {hint localize "STR_Global_NoSelection"};
- _vehicle = lbData[2802,(lbCurSel 2802)];
- _vehicle = (call compile format["%1",_vehicle]) select 0;
- _vid = lbValue[2802,(lbCurSel 2802)];
- _pid = getPlayerUID player;
- _unit = player;
- if(isNil "_vehicle") exitWith {hint localize "STR_Garage_Selection_Error"};
- _price = M_CONFIG(getNumber,"LifeCfgVehicles",_vehicleLife,"price");
- _storageFee = LIFE_SETTINGS(getNumber,"vehicle_four_multiplier ");
- _purchasePrice = _price * LIFE_SETTINGS(getNumber,"vehicle_purchase_multiplier_CIVILIAN");
- _price = _purchasePrice * _storageFee;
- if(typeName life_fourriere_sp == "ARRAY") then {
- [_vid,_pid,life_fourriere_sp select 0,_unit,_price,life_fourriere_sp select 1] remoteExecCall ["TON_fnc_spawnVehicle",2];
- } else {
- if(life_fourriere_sp in ["medic_spawn_1","medic_spawn_2","medic_spawn_3"]) then {
- [_vid,_pid,life_fourriere_sp,_unit,_price] remoteExecCall ["TON_fnc_spawnVehicle",2];
- } else {
- [_vid,_pid,(getMarkerPos life_fourriere_sp),_unit,_price,markerDir life_fourriere_sp] remoteExecCall ["TON_fnc_spawnVehicle",2];
- };
- };
- hint localize "STR_Garage_SpawningVeh";
- life_atmcash = life_atmcash - _price;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement