class BuyCarWithInsure : life_RscButtonMenu {
idc = -1;
text = "Acheter assuré";
onButtonClick = "[true,1] spawn life_fnc_vehicleShopBuy;";
x = 0.43 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.9 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
[(getPlayerUID player),playerSide,_vehicle,_colorIndex] remoteExecCall ["TON_fnc_vehicleCreate",RSERV];
[(getPlayerUID player),playerSide,_vehicle,_colorIndex,param [1,0,[0]]]...
class BuyCarWithInsure : life_RscButtonMenu {
idc = -1;
text = "Acheter assuré";
onButtonClick = "[true,1] spawn life_fnc_vehicleShopBuy;";
x = 0.43 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.9 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
[(getPlayerUID player),playerSide,_vehicle,_colorIndex] remoteExecCall ["TON_fnc_vehicleCreate",RSERV];
[(getPlayerUID player),playerSide,_vehicle,_colorIndex,param [1,0,[0]]] remoteExecCall ["TON_fnc_vehicleCreate",RSERV];
[_uid,_side,_type,_classname,_color,_plate] call DB_fnc_insertVehicle;
[_uid,_side,_type,_classname,_color,_plate,param [4,0,[0]]] call DB_fnc_insertVehicle;
_query = format ["INSERT INTO vehicles (side, classname, type, pid, alive, active, inventory, color, plate, gear, damage) VALUES ('%1', '%2', '%3', '%4', '1','1','""[[],0]""', '%5', '%6','""[]""','""[]""')",_side,_className,_type,_uid,_color,_plate];
_query = format ["INSERT INTO vehicles (side, classname, type, pid, alive, active, inventory, color, plate, gear, damage, insure) VALUES ('%1', '%2', '%3', '%4', '1','1','""[[],0]""', '%5', '%6','""[]""','""[]""', '%7')",_side,_className,_type,_uid,_color,_plate,param [6,0,[0]]];