diff --git a/server/vehicle/class.ts b/server/vehicle/class.ts index edb5a1c..ab4d11f 100644 --- a/server/vehicle/class.ts +++ b/server/vehicle/class.ts @@ -246,7 +246,7 @@ export class OxVehicle extends ClassInterface { setPlate(plate: string) { if (this.plate === plate) return; - this.plate = this.plate.length > 8 ? this.plate.substring(0, 8) : this.plate.padEnd(8); + this.plate = plate.length > 8 ? plate.substring(0, 8) : plate.padEnd(8); SetVehicleColumn(this.id, 'plate', this.plate); }