Fix some entries in veh info cmd

This commit is contained in:
Vortrex
2022-05-26 17:34:06 -05:00
parent fca7d57dac
commit 62614b358f

View File

@@ -1034,15 +1034,15 @@ function getVehicleInfoCommand(command, params, client) {
} }
let tempStats = [ let tempStats = [
[`Type`, `${getGameConfig().vehicles[vehicleData.model][1]} (${getGameConfig().vehicles[vehicleData.model][0]})`], [`Type`, `${getGameConfig().vehicles[getGame()][vehicleData.model][1]} (${getGameConfig().vehicles[getGame()][vehicleData.model][0]})`],
[`ID`, `${vehicleData.index}/${vehicleData.databaseId}`], [`ID`, `${vehicleData.index}/${vehicleData.databaseId}`],
[`Owner`, `${ownerName} (${getVehicleOwnerTypeText(vehicleData.ownerType)})`], [`Owner`, `${ownerName} (${getVehicleOwnerTypeText(vehicleData.ownerType)})`],
[`Locked`, `${getLockedUnlockedFromBool(vehicleData.locked)}`], [`Locked`, `${getYesNoFromBool(vehicleData.locked)}`],
[`Engine`, `${getOnOffFromBool(vehicleData.engine)}`], [`Engine`, `${getOnOffFromBool(vehicleData.engine)}`],
[`Lights`, `${getOnOffFromBool(vehicleData.lights)}`], [`Lights`, `${getOnOffFromBool(vehicleData.lights)}`],
[`Buy Price`, `${vehicleData.buyPrice}`], [`Buy Price`, `${vehicleData.buyPrice}`],
[`Rent Price`, `${vehicleData.rentPrice}`], [`Rent Price`, `${vehicleData.rentPrice}`],
[`Radio Station`, `${vehicleData.streamingRadioStation}`], [`Radio Station`, `${(vehicleData.streamingRadioStation == -1) ? "None" : getRadioStationData(vehicleData.streamingRadioStation).name}`],
[`Parked`, `${getYesNoFromBool(vehicleData.spawnLocked)}`], [`Parked`, `${getYesNoFromBool(vehicleData.spawnLocked)}`],
[`License Plate`, `${vehicleData.licensePlate}`], [`License Plate`, `${vehicleData.licensePlate}`],
[`Colour`, `${getVehicleColourInfoString(vehicleData.colour1, vehicleData.colour1IsRGBA)}, ${getVehicleColourInfoString(vehicleData.colour1, vehicleData.colour1IsRGBA)}`], [`Colour`, `${getVehicleColourInfoString(vehicleData.colour1, vehicleData.colour1IsRGBA)}, ${getVehicleColourInfoString(vehicleData.colour1, vehicleData.colour1IsRGBA)}`],