Overhaul of "client" to "player"
This commit is contained in:
@@ -49,7 +49,7 @@ function vehicleRentCheck() {
|
||||
if(getServerData().vehicles[i].rentedBy) {
|
||||
let rentedBy = getServerData().vehicles[i].rentedBy;
|
||||
if(getPlayerData(rentedBy).cash < getServerData().vehicles[i].rentPrice) {
|
||||
messageClientAlert(rentedBy, `You do not have enough money to continue renting this vehicle!`);
|
||||
messagePlayerAlert(rentedBy, `You do not have enough money to continue renting this vehicle!`);
|
||||
stopRentingVehicle(rentedBy);
|
||||
} else {
|
||||
getPlayerData(rentedBy).cash -= getServerData().vehicles[i].rentPrice;
|
||||
|
||||
Reference in New Issue
Block a user