Fix vehicle buying

This commit is contained in:
Vortrex
2022-03-28 19:46:58 -05:00
parent 2a8b017cc4
commit 7b9ae0eacb

View File

@@ -1421,7 +1421,13 @@ function processVehiclePurchasing() {
return false; return false;
} }
getClients().forEach((client) => {
return false;
}
// ===========================================================================
function checkVehicleBuying(client) {
if(!isPlayerLoggedIn(client)) { if(!isPlayerLoggedIn(client)) {
setPlayerBuyingVehicleState(client, VRR_VEHBUYSTATE_NONE, null, null); setPlayerBuyingVehicleState(client, VRR_VEHBUYSTATE_NONE, null, null);
return false; return false;
@@ -1474,9 +1480,6 @@ function processVehiclePurchasing() {
setPlayerBuyingVehicleState(client, VRR_VEHBUYSTATE_NONE, null, null); setPlayerBuyingVehicleState(client, VRR_VEHBUYSTATE_NONE, null, null);
return true; return true;
} }
});
return false;
} }
// =========================================================================== // ===========================================================================