diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index 05539f6dc..ef865061c 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -405,7 +405,7 @@ function ESX.CreateExtendedVehicle(plate, entity, model, props, owner) props = props, owner = owner, } - Core.vehicles[netId] = vehicle + Core.vehicles[plate] = vehicle local obj = table.clone(Core.vehicleClass) obj.plate = plate