mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
fix(es_extended/server/classes/vehicle): fix plate not updating in db
This commit is contained in:
@@ -140,8 +140,8 @@ Core.vehicleClass = {
|
||||
local xVehicle = Core.vehicles[self.plate]
|
||||
Entity(xVehicle.entity).state:set("plate", plate, false)
|
||||
SetVehicleNumberPlateText(xVehicle.entity, plate)
|
||||
xVehicle.plate = plate
|
||||
MySQL.update.await("UPDATE `owned_vehicles` SET `plate` = ? WHERE `plate` = ? AND `owner` = ?", { plate, xVehicle.plate, xVehicle.owner })
|
||||
xVehicle.plate = plate
|
||||
|
||||
return true
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user