mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
fix(es_extended): widen rented_vehicles.owner to hold an identifier
The column is varchar(22), which is a leftover from Steam identifiers. esx_vehicleshop writes a player identifier into it, and on a multicharacter server those are 46 characters long, so renting a vehicle out fails. The stock vehicle is deleted from cardealer_vehicles before the insert runs, so the dealer loses the car and the customer never gets a rental contract. Neither side is told anything, because the handler dies on the insert. esx_vehicleshop's own esx_vehicleshop.sql already declares varchar(60).
This commit is contained in:
+1
-1
@@ -364,7 +364,7 @@ CREATE TABLE `rented_vehicles` (
|
||||
`player_name` varchar(255) NOT NULL,
|
||||
`base_price` int(11) NOT NULL,
|
||||
`rent_price` int(11) NOT NULL,
|
||||
`owner` varchar(22) NOT NULL
|
||||
`owner` varchar(60) NOT NULL
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user